# HG changeset patch # User Sascha Wilde # Date 1404378093 -7200 # Node ID efc2d16ab51428e7d56adcf69e1553c6f9c9147f # Parent 2d64ff7e22e8a6aafc9bd76b53c144db976fc618 Remove (more) data files and directories. diff -r 2d64ff7e22e8 -r efc2d16ab514 packaging/linux-installer.inc.in --- a/packaging/linux-installer.inc.in Thu Jul 03 10:43:39 2014 +0200 +++ b/packaging/linux-installer.inc.in Thu Jul 03 11:01:33 2014 +0200 @@ -206,6 +206,20 @@ fi } +deinstall_etc() +{ + # FIXME: delete all files created by the application. + 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 installation configuration: $instcfg_file ..." + rm "$instcfg_file" + rm_empty_dirs "$instcfg_path" +} + deinstall() { if [ "${oldinstcfg[PREFIX]}" ] ; then @@ -220,8 +234,7 @@ rm "$path" || echo >&2 "WARNING: Could not delete: '$path'!" done rm_empty_dirs "$deinstdir" - echo "Removing installation configuration from: $instcfg_file ..." - rm "$instcfg_file" + deinstall_etc echo "Deinstallation finished." else echo "No current installation found! No harm done."