@@ -41,7 +41,7 @@ if [ "$release" -eq 9 ]; then
4141 dovecot-pop3d roundcube-core net-tools roundcube-mysql roundcube-plugins
4242 mariadb-client mariadb-common mariadb-server postgresql
4343 postgresql-contrib phppgadmin phpmyadmin mc flex whois rssh git idn zip
44- sudo bc ftp lsof ntpdate rrdtool quota e2fslibs bsdutils e2fsprogs curl
44+ sudo bc ftp lsof rrdtool quota e2fslibs bsdutils e2fsprogs curl
4545 imagemagick fail2ban dnsutils bsdmainutils cron hestia hestia-nginx
4646 hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
4747 rsyslog ssh setpriv ipset libapache2-mod-ruid2"
@@ -57,7 +57,7 @@ elif [ "$release" -eq 10 ]; then
5757 clamav-daemon spamassassin dovecot-imapd dovecot-pop3d roundcube-core
5858 net-tools roundcube-mysql roundcube-plugins mariadb-client
5959 mariadb-common mariadb-server postgresql postgresql-contrib phpmyadmin
60- phppgadmin mc flex whois git idn zip sudo bc ftp lsof ntpdate rrdtool
60+ phppgadmin mc flex whois git idn zip sudo bc ftp lsof rrdtool
6161 quota e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
6262 bsdmainutils cron hestia hestia-nginx hestia-php expect
6363 libmail-dkim-perl unrar-free vim-common acl sysstat rsyslog ssh util-linux
@@ -310,13 +310,6 @@ apt-get -qq update
310310# Creating backup directory
311311mkdir -p $hst_backups
312312
313- # Checking ntpdate
314- if [ ! -e ' /usr/sbin/ntpdate' ]; then
315- echo " [ * ] Installing ntpdate..."
316- apt-get -y install ntpdate >> $LOG
317- check_result $? " Can't install ntpdate"
318- fi
319-
320313# Checking wget
321314if [ ! -e ' /usr/bin/wget' ]; then
322315 echo " [ * ] Installing wget..."
@@ -965,10 +958,9 @@ if [ -z "$(grep ^/usr/sbin/nologin /etc/shells)" ]; then
965958fi
966959
967960# Configuring NTP
968- echo ' #!/bin/sh' > /etc/cron.daily/ntpdate
969- echo " $( which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
970- chmod 755 /etc/cron.daily/ntpdate
971- ntpdate -s pool.ntp.org
961+ sed -i ' s/#NTP=/NTP=pool.ntp.org/' /etc/systemd/timesyncd.conf
962+ systemctl enable systemd-timesyncd
963+ systemctl start systemd-timesyncd
972964
973965# Setup rssh
974966if [ ! " $release " -eq 10 ]; then
0 commit comments