maintain separate directory for script
This commit is contained in:
parent
5e92c178a3
commit
376355538e
2 changed files with 3 additions and 3 deletions
2
install
2
install
|
|
@ -22,7 +22,7 @@
|
|||
# PKGBUILD that installs using "./install $pkgdir".
|
||||
|
||||
INSTALL_DIR=$1
|
||||
SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks.bin/
|
||||
SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks.bin/snap-pac
|
||||
HOOKS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks/
|
||||
install -d $HOOKS_DIR
|
||||
install -d $SCRIPTS_DIR
|
||||
|
|
|
|||
4
snap-pac
4
snap-pac
|
|
@ -29,7 +29,7 @@ fi
|
|||
declare -r cleanupalgo=${CLEANUP_ALGORITHM:-"number"}
|
||||
declare -r description=${POST_DESCRIPTION:-"$(echo $(ps -C pacman -o args=) | sed 'sX/usr/bin/pacmanXpacmanXg')"}
|
||||
declare -r configurations=${CONFIGS:-"root"}
|
||||
declare -r prefile_prefix="/usr/share/libalpm/hooks.bin/.snap-pac-pre"
|
||||
declare -r prefile_prefix="/usr/share/libalpm/hooks.bin/snap-pac/.pre"
|
||||
|
||||
function pre
|
||||
{
|
||||
|
|
@ -53,6 +53,6 @@ function post
|
|||
|
||||
function clean
|
||||
{
|
||||
rm /usr/share/libalpm/hooks.bin/.snap-pac-pre*
|
||||
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."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue