|
Revision 1058, 0.8 KB
(checked in by gonzalo, 13 months ago)
|
|
Alien Arena setup and remove script modified
|
-
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 | ######################################### |
|---|
| 9 | rm -R /usr/local/share/doc/alienarena |
|---|
| 10 | rm -R /usr/local/share/alienarena |
|---|
| 11 | rm -R /usr/local/bin/alienarena |
|---|
| 12 | rm -R /usr/local/bin/alienarena-ded |
|---|
| 13 | rm -R /usr/local/bin/alienarena-sdl |
|---|
| 14 | rm -R /usr/local/lib/alienarena |
|---|
| 15 | |
|---|
| 16 | # Ask if we want to remove the user profiles |
|---|
| 17 | kdialog --yesno "Do you want to remove Alien Arena user settings and temporal files?" --title "Remove user settings" |
|---|
| 18 | if [ "$?" = "0" ] |
|---|
| 19 | then |
|---|
| 20 | cd /home |
|---|
| 21 | for i in `ls` |
|---|
| 22 | do |
|---|
| 23 | if [ -e "/home/${i}/.codered" ] |
|---|
| 24 | then |
|---|
| 25 | rm -rf /home/${i}/.codered |
|---|
| 26 | fi |
|---|
| 27 | done |
|---|
| 28 | fi |
|---|