diff --git a/snapper-pac-post b/snapper-pac-post new file mode 100755 index 0000000..400449a --- /dev/null +++ b/snapper-pac-post @@ -0,0 +1,10 @@ +#!/bin/bash + +PREFILE=/etc/snapper/.snap-pac-pre +if [ -f $PREFILE ]; then + SNAPPERPACPRE=$(cat $PREFILE) + snapper --config root create --type post --pre-number $SNAPPERPACPRE --description "pacman posttransaction" + rm $PREFILE +else + echo "WARNING: $PREFILE does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal." +fi