Mercurial > trustbridge
comparison packaging/linux-installer.inc.in @ 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 |
comparison
equal
deleted
inserted
replaced
750:27dd0012288a | 751:d8c8e14b9953 |
---|---|
229 { | 229 { |
230 echo "Removing cron job ..." | 230 echo "Removing cron job ..." |
231 remove_cronjob | 231 remove_cronjob |
232 | 232 |
233 # FIXME: delete all files created by the application. | 233 # FIXME: delete all files created by the application. |
234 local tbcfg_file="${instcfg_path}/TrustBridge.ini" | 234 local tbcfg_files=( "${instcfg_path}/TrustBridge.ini" |
235 | 235 "${instcfg_path}/trustbridge-tray-starter.cfg" |
236 "$instcfg_file" ) | |
236 echo "Removing certificate lists from: ${instdata_path}:" | 237 echo "Removing certificate lists from: ${instdata_path}:" |
237 for file in "$instdata_path"/list-*.txt ; do | 238 for file in "$instdata_path"/list-*.txt ; do |
238 echo "Deleting $file ..." | 239 echo "Deleting $file ..." |
239 rm "$file" | 240 rm "$file" |
240 done | 241 done |
241 rm_empty_dirs "$instdata_path" | 242 rm_empty_dirs "$instdata_path" |
242 echo "Removing TrustBridge configuration: $tbcfg_file ..." | 243 |
243 rm "$tbcfg_file" | 244 echo "Removing configuration files:" |
244 echo "Removing installation configuration: $instcfg_file ..." | 245 for file in "${tbcfg_files[@]}" ; do |
245 rm "$instcfg_file" | 246 echo "Deleting $file ..." |
247 rm "$file" | |
248 done | |
246 rm_empty_dirs "$instcfg_path" | 249 rm_empty_dirs "$instcfg_path" |
247 } | 250 } |
248 | 251 |
249 deinstall() | 252 deinstall() |
250 { | 253 { |