Fix backup command to handle errors correctly

This commit is contained in:
CanbiZ (MickLesk) 2026-04-22 06:25:41 +02:00 committed by GitHub
parent eed21a46e8
commit 0f59ff4186
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Backing up Data"
cp -r /opt/ownfoil/app/config /opt/ownfoil_data_backup 2>/dev/null || true
cp -r /opt/ownfoil/app/config /opt/ownfoil_data_backup
msg_ok "Backed up Data"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball"