aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-28 08:18:52 +0000
committermerakor <cem@ckyln.com>2020-05-28 08:18:52 +0000
commit18a3e0197c0723a6a0ea779a6bdd30b8bc803b18 (patch)
tree370a4a546324111454afb1d163428bcbbaf1d8f8
parentcc95d809269b369f40a63cdc31332336186be52e (diff)
downloadcpt-18a3e0197c0723a6a0ea779a6bdd30b8bc803b18.tar.gz
kiss: run remove hooks as root
FossilOrigin-Name: f0626b4c7bd805117a967027cf8a07987aee1aed799081003e10800afde5e08d
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index cabe1c5..fb2dc1b 100755
--- 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"
}