10 lines
379 B
Bash
Executable file
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
|