diff --git a/src/freedombone b/src/freedombone
index df61826d6f253b9e2fb0ade8d888362edc2614b5..82d842360943f6cf76d34e384abed1236e843379 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