diff options
author | merakor <cem@ckyln.com> | 2020-05-28 08:18:52 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-28 08:18:52 +0000 |
commit | 18a3e0197c0723a6a0ea779a6bdd30b8bc803b18 (patch) | |
tree | 370a4a546324111454afb1d163428bcbbaf1d8f8 /kiss | |
parent | cc95d809269b369f40a63cdc31332336186be52e (diff) | |
download | cpt-18a3e0197c0723a6a0ea779a6bdd30b8bc803b18.tar.gz |
kiss: run remove hooks as root
FossilOrigin-Name: f0626b4c7bd805117a967027cf8a07987aee1aed799081003e10800afde5e08d
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" } |