root/pbibuild/modules/lincity-ng/overlay-dir/PBI.RemoveScript.sh

Revision 1244, 0.8 KB (checked in by gonzalo, 12 months ago)

Duplicated icon fixed

Line 
1#!/bin/sh
2# Filename: PBI.RemoveScript.sh
3# Place any custom removal code here.
4# This script will be run before your program is deleted.
5# ${1} is the directory name.
6# ${2} is the username of person performing the deletion.
7# TIP: 'kdialog' should be used for user interaction.
8#########################################
9rm -fR /usr/local/bin/lincity-ng
10rm -fR /usr/local/share/lincity-ng
11rm -fR /usr/local/share/pixmaps/lincity-ng.png
12rm -fR /usr/local/share/doc/lincity-ng
13#rm -fR /usr/local/share/applications/lincity-ng.desktop
14
15if [ ! -z "$DISPLAY" ]
16then
17 # Ask if we want to remove the user profiles
18 kdialog --yesno "Do you want to remove LinCity-NG user settings?" --title "Remove user settings"
19 if [ "$?" = "0" ]
20 then
21  cd /home
22  for i in `ls`
23  do
24   if [ -e "/home/${i}/.lincity-ng" ]
25   then
26    rm -rf /home/${i}/.lincity-ng
27   fi
28  done
29 fi
30fi
Note: See TracBrowser for help on using the browser.