comparison packaging/linux-installer.inc.in @ 729:efc2d16ab514

Remove (more) data files and directories.
author Sascha Wilde <wilde@intevation.de>
date Thu, 03 Jul 2014 11:01:33 +0200
parents 2d64ff7e22e8
children 62af7d247430
comparison
equal deleted inserted replaced
728:2d64ff7e22e8 729:efc2d16ab514
204 else 204 else
205 echo "No certificate list found. Nothing to do." 205 echo "No certificate list found. Nothing to do."
206 fi 206 fi
207 } 207 }
208 208
209 deinstall_etc()
210 {
211 # FIXME: delete all files created by the application.
212 echo "Removing certificate lists from: ${instdata_path}:"
213 for file in "$instdata_path"/list-*.txt ; do
214 echo "Deleting $file ..."
215 rm "$file"
216 done
217 rm_empty_dirs "$instdata_path"
218 echo "Removing installation configuration: $instcfg_file ..."
219 rm "$instcfg_file"
220 rm_empty_dirs "$instcfg_path"
221 }
222
209 deinstall() 223 deinstall()
210 { 224 {
211 if [ "${oldinstcfg[PREFIX]}" ] ; then 225 if [ "${oldinstcfg[PREFIX]}" ] ; then
212 echo "Really deinstall TrustBridge from '${oldinstcfg[PREFIX]}'?" 226 echo "Really deinstall TrustBridge from '${oldinstcfg[PREFIX]}'?"
213 yorn || exit 0 227 yorn || exit 0
218 local path="${deinstdir}/$file" 232 local path="${deinstdir}/$file"
219 echo "Deleting '$path' ..." 233 echo "Deleting '$path' ..."
220 rm "$path" || echo >&2 "WARNING: Could not delete: '$path'!" 234 rm "$path" || echo >&2 "WARNING: Could not delete: '$path'!"
221 done 235 done
222 rm_empty_dirs "$deinstdir" 236 rm_empty_dirs "$deinstdir"
223 echo "Removing installation configuration from: $instcfg_file ..." 237 deinstall_etc
224 rm "$instcfg_file"
225 echo "Deinstallation finished." 238 echo "Deinstallation finished."
226 else 239 else
227 echo "No current installation found! No harm done." 240 echo "No current installation found! No harm done."
228 fi 241 fi
229 } 242 }

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