[PATCH 1 of 2] Remove trustbridge-tray-starter configuration on deinstallation
Wald Commits
scm-commit at wald.intevation.org
Fri Jul 4 17:49:42 CEST 2014
# HG changeset patch
# User Sascha Wilde <wilde at intevation.de>
# Date 1404487675 -7200
# Node ID d8c8e14b99538ed45079d65e15c6a08afff8a008
# Parent 27dd0012288a36491552e05a6de2d1d6f8258430
Remove trustbridge-tray-starter configuration on deinstallation.
diff -r 27dd0012288a -r d8c8e14b9953 packaging/linux-installer.inc.in
--- a/packaging/linux-installer.inc.in Fri Jul 04 17:18:05 2014 +0200
+++ b/packaging/linux-installer.inc.in Fri Jul 04 17:27:55 2014 +0200
@@ -231,18 +231,21 @@
remove_cronjob
# FIXME: delete all files created by the application.
- local tbcfg_file="${instcfg_path}/TrustBridge.ini"
-
+ local tbcfg_files=( "${instcfg_path}/TrustBridge.ini"
+ "${instcfg_path}/trustbridge-tray-starter.cfg"
+ "$instcfg_file" )
echo "Removing certificate lists from: ${instdata_path}:"
for file in "$instdata_path"/list-*.txt ; do
echo "Deleting $file ..."
rm "$file"
done
rm_empty_dirs "$instdata_path"
- echo "Removing TrustBridge configuration: $tbcfg_file ..."
- rm "$tbcfg_file"
- echo "Removing installation configuration: $instcfg_file ..."
- rm "$instcfg_file"
+
+ echo "Removing configuration files:"
+ for file in "${tbcfg_files[@]}" ; do
+ echo "Deleting $file ..."
+ rm "$file"
+ done
rm_empty_dirs "$instcfg_path"
}
More information about the Trustbridge-commits
mailing list