From 18a3e0197c0723a6a0ea779a6bdd30b8bc803b18 Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 28 May 2020 08:18:52 +0000 Subject: kiss: run remove hooks as root FossilOrigin-Name: f0626b4c7bd805117a967027cf8a07987aee1aed799081003e10800afde5e08d --- kiss | 4 ++-- 1 file 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" } -- cgit v1.2.3