Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk 9431d46a88 cronmaster: back up scripts, data and snippets folders on update 2026-08-15 23:02:52 +02:00
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -48,15 +48,12 @@ function update_script() {
chown -R www-data:www-data /opt/wallos
chmod -R 755 /opt/wallos
mkdir -p /var/log/cron
$STD curl http://localhost/endpoints/db/migrate.php
msg_ok "Configured Wallos"
msg_info "Reload Apache2"
systemctl reload apache2
msg_ok "Apache2 Reloaded"
msg_info "Running Database Migration"
$STD curl http://localhost/endpoints/db/migrate.php
msg_ok "Ran Database Migration"
msg_ok "Updated successfully!"
fi
exit
+1 -1
View File
@@ -61,7 +61,7 @@ function update() {
msg_ok "Stopped service"
BACKUP_DIR="/opt/cronmaster_backup"
create_backup "$CONFIG_PATH"
create_backup "$CONFIG_PATH" "$INSTALL_PATH/scripts" "$INSTALL_PATH/data" "$INSTALL_PATH/snippets"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cronmaster" "fccview/cronmaster" "prebuild" "latest" "$INSTALL_PATH" "cronmaster_*_prebuild.tar.gz"