mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 18:35:55 +00:00
- Remove existing backup directory before creating new backup - Clean up temporary files after successful update
This commit is contained in:
committed by
GitHub
parent
69b0e5b858
commit
c8c1c454ce
@@ -32,6 +32,7 @@ function update_script() {
|
|||||||
if check_for_gh_release "firefly" "firefly-iii/firefly-iii"; then
|
if check_for_gh_release "firefly" "firefly-iii/firefly-iii"; then
|
||||||
systemctl stop apache2
|
systemctl stop apache2
|
||||||
cp /opt/firefly/.env /opt/.env
|
cp /opt/firefly/.env /opt/.env
|
||||||
|
rm -rf /opt/storage
|
||||||
cp -r /opt/firefly/storage /opt/storage
|
cp -r /opt/firefly/storage /opt/storage
|
||||||
|
|
||||||
if [[ -d /opt/firefly/dataimporter ]]; then
|
if [[ -d /opt/firefly/dataimporter ]]; then
|
||||||
@@ -82,6 +83,7 @@ function update_script() {
|
|||||||
chown -R www-data:www-data /opt/firefly/dataimporter
|
chown -R www-data:www-data /opt/firefly/dataimporter
|
||||||
msg_ok "Updated Firefly Importer"
|
msg_ok "Updated Firefly Importer"
|
||||||
fi
|
fi
|
||||||
|
rm -rf /opt/storage /opt/.env /opt/dataimporter.env
|
||||||
systemctl start apache2
|
systemctl start apache2
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user