Răsfoiți Sursa

fixed ntpdate path

Serghey Rodin 13 ani în urmă
părinte
comite
35b56dda50
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      install/vst-install.sh

+ 2 - 2
install/vst-install.sh

@@ -293,9 +293,9 @@ rm -f /etc/cron.daily/00webalizer
 
 # NTP Synchronization
 echo '#!/bin/sh' > /etc/cron.daily/ntpdate
-echo '/sbin/ntpdate -s pool.ntp.org' >> /etc/cron.daily/ntpdate
+echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
 chmod 775 /etc/cron.daily/ntpdate
-/sbin/ntpdate -s pool.ntp.org
+ntpdate -s pool.ntp.org
 
 # Vesta Environment
 echo "export VESTA='/usr/local/vesta'" > /etc/profile.d/vesta.sh