comparison packaging/linux-installer-uninstall.inc @ 1206:55c13de88b1e

(issue133) Always use CFGPATH to deinstall configuration This location is the same for system wide and user wide installation, while sysconfig path is /etc/TrustBridge for system wide installation.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 23 Sep 2014 13:17:06 +0200
parents 59b3c22a404c
children 014586ef8a84
comparison
equal deleted inserted replaced
1205:c536d031df2b 1206:55c13de88b1e
48 rm_files "$certlist" 48 rm_files "$certlist"
49 else 49 else
50 getxt "No certificate list found. Nothing to do.\n" 50 getxt "No certificate list found. Nothing to do.\n"
51 fi 51 fi
52 52
53 rm_files "${instcfg_path}/TrustBridge.ini" 53 rm_files "${CFGPATH}/TrustBridge.ini"
54 rm_empty_dirs "$instcfg_path" 54 rm_empty_dirs "${CFGPATH}"
55 } 55 }
56 56
57 deinstall_etc() 57 deinstall_etc()
58 { 58 {
59 getxt "Removing cron job ...\n" 59 getxt "Removing cron job ...\n"
60 remove_cronjob 60 remove_cronjob
61 61
62 getxt "Removing certificate lists from: %s:\n" "$instdata_path" 62 getxt "Removing certificate lists from: %s:\n" "$instdata_path"
63 rm_files "$instdata_path"/list-2*.txt 63 rm_files "$instdata_path"/list-2*.txt
64 64
65 local tbcfg_files=( "${instcfg_path}/trustbridge-tray-starter.cfg" 65 local tbcfg_files=( "${CFGPATH}/trustbridge-tray-starter.cfg"
66 "$instcfg_file" ) 66 "$instcfg_file" )
67 67
68 getxt "Removing configuration files:\n" 68 getxt "Removing configuration files:\n"
69 rm_files "${tbcfg_files[@]}" 69 rm_files "${tbcfg_files[@]}"
70 rm_empty_dirs "$instcfg_path" 70 rm_empty_dirs "$instcfg_path"
71 rm_empty_dirs "${CFGPATH}"
71 72
72 getxt "Removing PID file from: %s:\n" "$instdata_path" 73 getxt "Removing PID file from: %s:\n" "$instdata_path"
73 rm_files "$instdata_path"/*.pid 74 rm_files "$instdata_path"/*.pid
74 rm_empty_dirs "$instdata_path" 75 rm_empty_dirs "$instdata_path"
75 76

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