Mail-Archiver update fixes
This commit is contained in:
parent
7f68ee22f0
commit
ee2117a1b3
@ -29,6 +29,10 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_release "mail-archiver" "s1t5/mail-archiver"; then
|
if check_for_gh_release "mail-archiver" "s1t5/mail-archiver"; then
|
||||||
|
msg_info "Stopping Mail-Archiver"
|
||||||
|
systemctl stop mail-archiver
|
||||||
|
msg_ok "Stopped Mail-Archiver"
|
||||||
|
|
||||||
msg_info "Creating Backup"
|
msg_info "Creating Backup"
|
||||||
cp /opt/mail-archiver/appsettings.json /opt/mail-archiver/.env /opt/
|
cp /opt/mail-archiver/appsettings.json /opt/mail-archiver/.env /opt/
|
||||||
[[ -d /opt/mail-archiver/DataProtection-Keys ]] && cp -r /opt/mail-archiver/DataProtection-Keys /opt
|
[[ -d /opt/mail-archiver/DataProtection-Keys ]] && cp -r /opt/mail-archiver/DataProtection-Keys /opt
|
||||||
@ -48,6 +52,10 @@ function update_script() {
|
|||||||
cp /opt/appsettings.json /opt/.env /opt/mail-archiver
|
cp /opt/appsettings.json /opt/.env /opt/mail-archiver
|
||||||
[[ -d /opt/DataProtection-Keys ]] && cp -r /opt/DataProtection-Keys /opt/mail-archiver/
|
[[ -d /opt/DataProtection-Keys ]] && cp -r /opt/DataProtection-Keys /opt/mail-archiver/
|
||||||
msg_ok "Restored Backup"
|
msg_ok "Restored Backup"
|
||||||
|
|
||||||
|
msg_info "Starting Mail-Archiver"
|
||||||
|
systemctl start mail-archiver
|
||||||
|
msg_ok "Started Mail-Archiver"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user