put CLEANUP_ALGORITHM in scripts

This commit is contained in:
James Barnett 2016-04-25 12:22:54 -05:00
parent 31a76ca665
commit 8194b4ac7b
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ PREFILE_PREFIX="/usr/share/libalpm/hooks.bin/snap-pac/.pre"
for x in $CONFIGS; do for x in $CONFIGS; do
if [ -f $PREFILE_PREFIX"_"$x ]; then if [ -f $PREFILE_PREFIX"_"$x ]; then
SNAPPERPACPRE=$(cat $PREFILE_PREFIX"_"$x) SNAPPERPACPRE=$(cat $PREFILE_PREFIX"_"$x)
snapper --config $x create --cleanup-algorithm number --type post --pre-number $SNAPPERPACPRE --description "$PRE_DESCRIPTION" snapper --config $x create --cleanup-algorithm $CLEANUP_ALGORITHM --type post --pre-number $SNAPPERPACPRE --description "$PRE_DESCRIPTION"
rm $PREFILE_PREFIX"_"$x rm $PREFILE_PREFIX"_"$x
else else
echo "WARNING: $PREFILE_PREFIX"_"$x does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal." echo "WARNING: $PREFILE_PREFIX"_"$x does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal."

View file

@ -24,5 +24,5 @@ source /etc/snap-pac.conf
PREFILE_PREFIX="/usr/share/libalpm/hooks.bin/snap-pac/.pre" PREFILE_PREFIX="/usr/share/libalpm/hooks.bin/snap-pac/.pre"
for x in $CONFIGS; do for x in $CONFIGS; do
snapper --config $x create --type pre --cleanup-algorithm number --print-number --description "$POST_DESCRIPTION" > $PREFILE_PREFIX"_"$x snapper --config $x create --type pre --cleanup-algorithm $CLEANUP_ALGORITHM --print-number --description "$POST_DESCRIPTION" > $PREFILE_PREFIX"_"$x
done done