Skip to content

Commit 626e247

Browse files
author
Kristan Kenney
committed
Ensure ntpdate is available before install
1 parent b7982ea commit 626e247

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

install/hst-install-debian.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ apt-get -qq update
281281
# Creating backup directory
282282
mkdir -p $hst_backups
283283

284+
# Checking ntpdate
285+
if [ ! -e '/usr/sbin/ntpdate' ]; then
286+
echo "Install missing ntpdate..."
287+
apt-get -y install ntpdate >> $LOG
288+
check_result $? "Can't install ntpdate"
289+
fi
290+
284291
# Checking wget
285292
if [ ! -e '/usr/bin/wget' ]; then
286293
echo "Install missing wget..."

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ apt-get -qq update
266266
# Creating backup directory
267267
mkdir -p $hst_backups
268268

269+
# Checking ntpdate
270+
if [ ! -e '/usr/sbin/ntpdate' ]; then
271+
echo "Install missing ntpdate..."
272+
apt-get -y install ntpdate >> $LOG
273+
check_result $? "Can't install ntpdate"
274+
fi
275+
269276
# Checking wget
270277
if [ ! -e '/usr/bin/wget' ]; then
271278
echo "Install missing wget..."

0 commit comments

Comments
 (0)