summaryrefslogtreecommitdiff
path: root/setup_native/scripts/uninstall_solaris.sh
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-21 10:35:16 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-21 10:35:16 +0000
commit3bc3dad956f56f1ed3c9732faaeaeb770e474eeb (patch)
tree9f51e617862b40b853ff42e2801e61db3a68edb8 /setup_native/scripts/uninstall_solaris.sh
parentc5c15eff945be4e9fc5dc3d9cc8c3d915813cf6a (diff)
INTEGRATION: CWS sysui03 (1.4.2); FILE MERGED
2005/01/14 07:08:53 obr 1.4.2.1: #i39410# check for gnome packages and other enhancements
Diffstat (limited to 'setup_native/scripts/uninstall_solaris.sh')
-rw-r--r--setup_native/scripts/uninstall_solaris.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/setup_native/scripts/uninstall_solaris.sh b/setup_native/scripts/uninstall_solaris.sh
index 1fd417505e67..65dddb596159 100644
--- a/setup_native/scripts/uninstall_solaris.sh
+++ b/setup_native/scripts/uninstall_solaris.sh
@@ -20,7 +20,7 @@ DIRECTORY=`pwd`
ADMINFILE=$DIRECTORY/admin
GETUID_SO=/tmp/getuid.so.$$
linenum=???
-tail +$linenum $0 > $GETUID_SO
+tail +$linenum `basename $0` > $GETUID_SO
PKGLIST=`pkginfo -R $MY_ROOT | cut -f 2 -d ' ' | grep -v core`
COREPKG=`pkginfo -R $MY_ROOT | cut -f 2 -d ' ' | grep core`
@@ -36,12 +36,17 @@ for i in $PKGLIST $COREPKG; do
echo $i
done
+INSTALL_DIR=$MY_ROOT`pkginfo -R $MY_ROOT -r $COREPKG`
+
+# Restore original bootstraprc
+mv -f $INSTALL_DIR/program/bootstraprc.orig $INSTALL_DIR/program/bootstraprc
+
LD_PRELOAD=$GETUID_SO
export LD_PRELOAD
for i in $PKGLIST $COREPKG; do
echo /usr/sbin/pkgrm -a $ADMINFILE -R $MY_ROOT $i
- /usr/sbin/pkgrm -a $ADMINFILE -R $MY_ROOT $i
+ /usr/sbin/pkgrm -n -a $ADMINFILE -R $MY_ROOT $i
done
# Removing old root directory, very dangerous!