|
@@ -726,7 +726,20 @@ function time_synchronisation {
|
726
|
726
|
if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
|
727
|
727
|
return
|
728
|
728
|
fi
|
729
|
|
- apt-get -y --force-yes install tlsdate
|
|
729
|
+ #apt-get -y --force-yes install tlsdate
|
|
730
|
+
|
|
731
|
+ # building tlsdate from source is a workaround because of
|
|
732
|
+ # this bug https://github.com/ioerror/tlsdate/issues/130
|
|
733
|
+ apt-get -y --force-yes install build-essential automake git pkg-config autoconf libtool libssl-dev
|
|
734
|
+ cd $INSTALL_DIR
|
|
735
|
+ git clone https://github.com/ioerror/tlsdate.git
|
|
736
|
+ cd $INSTALL_DIR/tlsdate
|
|
737
|
+ ./autogen.sh
|
|
738
|
+ ./configure
|
|
739
|
+ make
|
|
740
|
+ make install
|
|
741
|
+ systemctl start tlsdated.service
|
|
742
|
+
|
730
|
743
|
apt-get -y remove ntpdate
|
731
|
744
|
|
732
|
745
|
echo '#!/bin/bash' > /usr/bin/updatedate
|