Skip to content
Snippets Groups Projects
Commit 777c217e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

localdump: reset $rc before calling db plugin

parent f93ecd2c
No related branches found
No related tags found
1 merge request!140fix db plugins; Reduce desktop notification
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
# 2022-11-04 ah rename hooks # 2022-11-04 ah rename hooks
# 2024-03-14 ah v2.0: use profiles for local and remote databases # 2024-03-14 ah v2.0: use profiles for local and remote databases
# 2024-03-18 ah fix for db detection from file and cli restore # 2024-03-18 ah fix for db detection from file and cli restore
# 2024-10-02 ah reset $rc before calling db plugin
# ====================================================================== # ======================================================================
# --- variables: # --- variables:
...@@ -486,6 +487,8 @@ EOH ...@@ -486,6 +487,8 @@ EOH
_j_runHooks "200-before-db-service" _j_runHooks "200-before-db-service"
h3 "BACKUP [${PROFILENAME}] -> ${SERVICENAME}" h3 "BACKUP [${PROFILENAME}] -> ${SERVICENAME}"
rcbak=$rc
rc=0
. $BACKUP_SCRIPT $mode . $BACKUP_SCRIPT $mode
test $rc -gt 0 && j_notify "db ${SERVICENAME}" "$BACKUP_SCRIPT $mode was finished with rc=$rc" $rc test $rc -gt 0 && j_notify "db ${SERVICENAME}" "$BACKUP_SCRIPT $mode was finished with rc=$rc" $rc
...@@ -498,6 +501,8 @@ EOH ...@@ -498,6 +501,8 @@ EOH
cleanup_backup_target cleanup_backup_target
show_info_backup_target show_info_backup_target
rc=$rc+$rcbak
else else
echo "SKIP: profile $iProfileCounter of $iProfilesFound '$PROFILENAME' " echo "SKIP: profile $iProfileCounter of $iProfilesFound '$PROFILENAME' "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment