comparison packaging/linux-installer.inc.in @ 858:4dfb6f543a05

Only uninstall a list if it has been installed
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 04 Aug 2014 15:06:33 +0200
parents adf7481291a4
children 3f23130b16b2
comparison
equal deleted inserted replaced
857:9bab4fc3a1fe 858:4dfb6f543a05
254 } 254 }
255 255
256 deinstall_certs() 256 deinstall_certs()
257 { 257 {
258 local cinst="${oldinstcfg[PREFIX]}/bin/cinst" 258 local cinst="${oldinstcfg[PREFIX]}/bin/cinst"
259 local certlist=`ls 2>/dev/null -1 ${instdata_path}/list-*.txt | sort -nr | head -n 1` 259 local certlist=`ls 2>/dev/null -1 ${instdata_path}/list-installed.txt`
260 260
261 getxt "Uninstalling certificates ...\n" 261 getxt "Uninstalling certificates ...\n"
262 262
263 if [ "$certlist" ] ; then 263 if [ "$certlist" ] ; then
264 getxt "Using certificate list '%s'.\n" "$certlist" 264 getxt "Using certificate list '%s'.\n" "$certlist"

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