update
This commit is contained in:
parent
afae3b49db
commit
02c4a88465
2 changed files with 6 additions and 5 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f /.snapperpacpre ]; then
|
||||
SNAPPERPACPRE=$(cat /.snapperpacpre)
|
||||
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 /.snapperpacpre
|
||||
rm $PREFILE
|
||||
else
|
||||
echo "No pacman pre snapshot was performed, so not performing post snapshot. If you are installing pac-snap, this is normal."
|
||||
echo "WARNING: $PREFILE does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal."
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
snapper --config root create --type pre --print-number --description "pacman pretransaction" > /.snapperpacpre
|
||||
snapper --config root create --type pre --print-number --description "pacman pretransaction" > /etc/snapper/.snap-pac-pre
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue