snap-pac/snapper-pac-post
James Barnett 1bd5b3a57f fix script
2016-03-11 08:54:17 -06:00

10 lines
379 B
Bash
Executable file

#!/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