Browse Source

Upgrade email encryption script

Bob Mottram 9 years ago
parent
commit
613df6bbd3
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/freedombone

+ 8
- 0
src/freedombone View File

@@ -8812,6 +8812,14 @@ function create_upgrade_script {
8812 8812
       echo 'systemctl daemon-reload' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8813 8813
   fi
8814 8814
 
8815
+  echo '# update email encryption script' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8816
+  echo "if [ -d $INSTALL_DIR/gpgit ]; then" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8817
+  echo "    cd $INSTALL_DIR/gpgit" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8818
+  echo '    git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8819
+  echo '    git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8820
+  echo '    cp gpgit.pl /usr/bin' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8821
+  echo 'fi' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8822
+  
8815 8823
   echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8816 8824
   chmod +x /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8817 8825
   echo 'create_upgrade_script' >> $COMPLETION_FILE