add link to AUR package

This commit is contained in:
James Barnett 2016-03-11 09:29:39 -06:00
parent 1bd5b3a57f
commit d37076907b
2 changed files with 4 additions and 10 deletions

View file

@ -4,3 +4,7 @@ These are used for Arch Linux's pacman, so that snapper automatically takes a
pre and post snapshot before and after pacman transactions. There's no need to
create aliases, etc. See `man alpm-hooks` and `man snapper` for more
information.
## Installation
Install [the package from the AUR](https://aur.archlinux.org/packages/snap-pac/).

View file

@ -1,10 +0,0 @@
#!/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