Browse Source

Build tlsdate from source

Bob Mottram 10 years ago
parent
commit
a308b1bddf
1 changed files with 14 additions and 1 deletions
  1. 14
    1
      install-freedombone.sh

+ 14
- 1
install-freedombone.sh View File

726
   if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
726
   if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
727
       return
727
       return
728
   fi
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
   apt-get -y remove ntpdate
743
   apt-get -y remove ntpdate
731
 
744
 
732
   echo '#!/bin/bash' > /usr/bin/updatedate
745
   echo '#!/bin/bash' > /usr/bin/updatedate