commit 8d16d25940aff8452c0cff8590b54ea550c9f096
parent 696cb8ae1fe938ca1dbc97c67a6cfef625a91592
Author: Cem Keylan <cem@ckyln.com>
Date: Thu, 28 May 2020 11:18:53 +0300
kiss: run remove hooks as root
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kiss b/kiss
@@ -1046,7 +1046,7 @@ pkg_remove() {
"$sys_db/$1/pre-remove" ||:
fi
- run_hook pre-remove "$1" "/var/db/kiss/installed/$1"
+ run_hook pre-remove "$1" "/var/db/kiss/installed/$1" root
while read -r file; do
# The file is in '/etc' skip it. This prevents the package
@@ -1064,7 +1064,7 @@ pkg_remove() {
# we no longer need to block 'Ctrl+C'.
trap pkg_clean EXIT INT
- run_hook post-remove "$1" "$KISS_ROOT/"
+ run_hook post-remove "$1" "$KISS_ROOT/" root
log "$1" "Removed successfully"
}