hard code removal

This commit is contained in:
James Barnett 2016-04-25 12:21:53 -05:00
parent a0659fdae0
commit 31a76ca665
4 changed files with 3 additions and 4 deletions

View file

@ -18,4 +18,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
rm /usr/share/libalpm/hooks.bin/snap-pac/.pre*
echo "NOTE: No post snapshot will be performed for this transaction, since you are removing the pacman hooks."

View file

@ -13,7 +13,3 @@ POST_DESCRIPTION="$(ps -C pacman -o args=)"
# Snapper cleanup algorithm to use.
CLEANUP_ALGORITHM="number"
# Prefix of the file that contains the pre snapshot number. Appended by the name
# of the specific configuration. Generally shouldn't want to change this.
PREFILE_PREFIX="/usr/share/libalpm/hooks.bin/snap-pac/.pre"

View file

@ -22,6 +22,7 @@
source /etc/snap-pac.conf
PREFILE_PREFIX="/usr/share/libalpm/hooks.bin/snap-pac/.pre"
for x in $CONFIGS; do
if [ -f $PREFILE_PREFIX"_"$x ]; then
SNAPPERPACPRE=$(cat $PREFILE_PREFIX"_"$x)

View file

@ -22,6 +22,7 @@
source /etc/snap-pac.conf
PREFILE_PREFIX="/usr/share/libalpm/hooks.bin/snap-pac/.pre"
for x in $CONFIGS; do
snapper --config $x create --type pre --cleanup-algorithm number --print-number --description "$POST_DESCRIPTION" > $PREFILE_PREFIX"_"$x
done