friendica - stop service earlier

This commit is contained in:
2023-01-18 11:24:42 +01:00
parent f5413da537
commit 76f82c0c86

View File

@@ -134,10 +134,10 @@ step_22() {
local tempAddons="${FR_LOC}/addon" local tempAddons="${FR_LOC}/addon"
exe mv "$FR_LOC" "$tempBu" exe mv "$FR_LOC" "$tempBu"
exe systemctl stop friendica.service
step backup "$tempBu" step backup "$tempBu"
endReturn "Backup failed; $FR_LOC renamed!" endReturn "Backup failed; $FR_LOC renamed!"
info "Installing version $latestVersion to $FR_LOC" info "Installing version $latestVersion to $FR_LOC"
exe systemctl stop friendica.service
exe mv "$tempExtract" "$FR_LOC" exe mv "$tempExtract" "$FR_LOC"
exe mv "$tempExtractAddons/addon" "$tempAddons" exe mv "$tempExtractAddons/addon" "$tempAddons"
exe chown -R www-data: "$FR_LOC" exe chown -R www-data: "$FR_LOC"
@@ -153,7 +153,7 @@ step_22() {
exe cp -ar "$tempBu/home".* "$FR_LOC/" exe cp -ar "$tempBu/home".* "$FR_LOC/"
fi fi
exe systemctl stop friendica.service exe systemctl start friendica.service
info "Don't forget to \"clean\" if everything is working as expected" info "Don't forget to \"clean\" if everything is working as expected"
} }
tempDown="/tmp/friendica" tempDown="/tmp/friendica"