changeset 751:d8c8e14b9953

Remove trustbridge-tray-starter configuration on deinstallation.
author Sascha Wilde <wilde@intevation.de>
date Fri, 04 Jul 2014 17:27:55 +0200
parents 27dd0012288a
children 96cac71834ba
files packaging/linux-installer.inc.in
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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"
 }
 

http://wald.intevation.org/projects/trustbridge/