Build tlsdate from source

This commit is contained in:
Bob Mottram 2014-09-30 23:40:31 +01:00
parent 9ffc0ef7d7
commit a308b1bddf
1 changed files with 14 additions and 1 deletions

View File

@ -726,7 +726,20 @@ function time_synchronisation {
if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
return
fi
apt-get -y --force-yes install tlsdate
#apt-get -y --force-yes install tlsdate
# building tlsdate from source is a workaround because of
# this bug https://github.com/ioerror/tlsdate/issues/130
apt-get -y --force-yes install build-essential automake git pkg-config autoconf libtool libssl-dev
cd $INSTALL_DIR
git clone https://github.com/ioerror/tlsdate.git
cd $INSTALL_DIR/tlsdate
./autogen.sh
./configure
make
make install
systemctl start tlsdated.service
apt-get -y remove ntpdate
echo '#!/bin/bash' > /usr/bin/updatedate