root/pbibuild/modules/assaultcube/overlay-dir/PBI.RemoveScript.sh

Revision 996, 0.9 KB (checked in by kris, 12 months ago)

Fixed assaultcube to remove the .assaultcube profile, and run the server
in a command-line mode

  • Property svn:executable set to *
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/assaultcube_client
10rm -fR /usr/local/bin/assaultcube_server
11rm -fR /usr/local/libexec/assaultcube_client
12rm -fR /usr/local/libexec/assaultcube_server
13rm -fR /usr/local/share/assaultcube
14rm -fR /usr/local/share/doc/assaultcube
15
16
17if [ ! -z "$DISPLAY" ]
18then
19 # Ask if we want to remove the user profiles
20 kdialog --yesno "Do you want to remove AssaultCube user settings?" --title "Remove user settings"
21 if [ "$?" = "0" ]
22 then
23  cd /home
24  for i in `ls`
25  do
26   if [ -e "/home/${i}/.assaultcube" ]
27   then
28    rm -rf /home/${i}/.assaultcube
29   fi
30  done
31 fi
32fi
Note: See TracBrowser for help on using the browser.