From 613df6bbd325c9412afa04d86777cd423467ed01 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Jun 2015 15:09:02 +0100 Subject: [PATCH] Upgrade email encryption script --- src/freedombone | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone b/src/freedombone index 8edb2f8b..8d5a9c70 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8812,6 +8812,14 @@ function create_upgrade_script { echo 'systemctl daemon-reload' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME fi + echo '# update email encryption script' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo "if [ -d $INSTALL_DIR/gpgit ]; then" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo " cd $INSTALL_DIR/gpgit" >> /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 ' cp gpgit.pl /usr/bin' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'fi' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME chmod +x /etc/cron.weekly/$UPGRADE_SCRIPT_NAME echo 'create_upgrade_script' >> $COMPLETION_FILE