diff --git a/README.md b/README.md index 09846a3..66b0353 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,15 @@ which is `"yes"`. * `PACMAN_POST_DESCRIPTION` - snapper description used for the pacman post snapshot. Default is the pacman command that called the snapshot. +The following setting can be changed in the snapper configuration file +`/etc/conf.d/snapper`: + +* `PACMAN_ABORT_ON_FAIL` - If for some reason there is an error taking the pre + snapshot, abort the pacman transaction if this is set to `"yes"`. Default is +`"no"`, meaning if there is an error taking the pre snapshot then continue with +the pacman transaction as normal. Any other value than `"no"` is treated the +same as `"yes"`. + These settings only need to be added to the snapper configuration files if you want to change the default. diff --git a/scripts/snap-pac b/scripts/snap-pac index 1b23509..a2cd342 100755 --- a/scripts/snap-pac +++ b/scripts/snap-pac @@ -33,7 +33,7 @@ if [[ -f "$SNAPPER_CONFIG_FILE" ]]; then source "$SNAPPER_CONFIG_FILE" else echo -e "$ERRORMSG $SNAPPER_CONFIG_FILE does not exist!" - exit 0 + exit 1 fi if [[ $EUID -ne 0 ]]; then