|
@@ -11312,6 +11312,13 @@ function backup_github_projects {
|
11312
|
11312
|
echo 'backup_github_projects' >> $COMPLETION_FILE
|
11313
|
11313
|
}
|
11314
|
11314
|
|
|
11315
|
+function check_date {
|
|
11316
|
+ curr_date=$(date)
|
|
11317
|
+ if [[ $curr_date == *"1970"* ]]; then
|
|
11318
|
+ apt-get -y install ntp
|
|
11319
|
+ fi
|
|
11320
|
+}
|
|
11321
|
+
|
11315
|
11322
|
function install_dynamicdns {
|
11316
|
11323
|
if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
11317
|
11324
|
return
|
|
@@ -11328,6 +11335,7 @@ function install_dynamicdns {
|
11328
|
11335
|
git clone https://github.com/bashrc/inadyn $INSTALL_DIR/inadyn
|
11329
|
11336
|
if [ ! -d $INSTALL_DIR/inadyn ]; then
|
11330
|
11337
|
echo 'inadyn repo not cloned'
|
|
11338
|
+ echo -n | openssl s_client -showcerts -connect github.com:443 -CApath /etc/ssl/certs
|
11331
|
11339
|
exit 6785
|
11332
|
11340
|
fi
|
11333
|
11341
|
cd $INSTALL_DIR/inadyn
|
|
@@ -11756,6 +11764,7 @@ change_debian_repos
|
11756
|
11764
|
enable_backports
|
11757
|
11765
|
configure_dns
|
11758
|
11766
|
initial_setup
|
|
11767
|
+check_date
|
11759
|
11768
|
install_dynamicdns
|
11760
|
11769
|
randomize_cron
|
11761
|
11770
|
create_freedns_updater
|