aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 5 insertions, 0 deletions
diff --git a/kiss b/kiss
index 136ee50..d92542b 100755
--- a/kiss
+++ b/kiss
@@ -821,6 +821,11 @@ pkg_remove() {
# an incomplete package installed.
trap '' INT
+ if [ -x "$sys_db/$1/pre-remove" ]; then
+ log "$1" "Running pre-remove script"
+ "$sys_db/$1/pre-remove" ||:
+ fi
+
while read -r file; do
# The file is in '/etc' skip it. This prevents the package
# manager from removing user edited configuration files.