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