diff --git a/README.md b/README.md index 935729a..3281d0a 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/snapper-pac-post b/snapper-pac-post deleted file mode 100755 index 400449a..0000000 --- a/snapper-pac-post +++ /dev/null @@ -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