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