From 71c45c7585f3d203c5f8b29fb3069fe41d1101d2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Jul 2015 15:33:08 +0100 Subject: [PATCH] Detect tox repo --- src/freedombone | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/freedombone b/src/freedombone index df61826d..82d84236 100755 --- a/src/freedombone +++ b/src/freedombone @@ -9276,17 +9276,17 @@ function create_upgrade_script { echo 'systemctl restart gogs' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME echo 'systemctl daemon-reload' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME fi - if [ -d $INSTALL_DIR/toxcore ]; then - echo '' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo '# Tox node' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo "cd $INSTALL_DIR/toxcore" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo 'git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo 'git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo 'autoreconf -i' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo './configure --enable-daemon' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo 'make' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - echo 'make install' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME - fi + + echo '# update tox node' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo "if [ -d $INSTALL_DIR/toxcore ]; then" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo " cd $INSTALL_DIR/toxcore" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo ' git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo ' git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo ' autoreconf -i' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo ' ./configure --enable-daemon' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo ' make' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo ' make install' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'fi' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME echo '# update email encryption script' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME echo "if [ -d $INSTALL_DIR/gpgit ]; then" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME