Skip to content
Snippets Groups Projects
Commit 71c45c75 authored by Bob Mottram's avatar Bob Mottram
Browse files

Detect tox repo

parent b6d72a3b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment