-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Barnett
committed
Mar 11, 2016
1 parent
afae3b4
commit 02c4a88
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |