Upgrade email encryption script
This commit is contained in:
parent
1c11ccad7a
commit
613df6bbd3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue