diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:52:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:52:45 +0100 |
commit | 2e626373db2412ac22e8c5c27a60d11cd29e875b (patch) | |
tree | 9e9f67205cd5b72f1031721273e1534a3a1e5b0f /setup_native/scripts/uninstall_linux.sh | |
parent | f7ee7bbd5174b084f018c2ec94d8c70c98ee04da (diff) |
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'setup_native/scripts/uninstall_linux.sh')
-rw-r--r-- | setup_native/scripts/uninstall_linux.sh | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/setup_native/scripts/uninstall_linux.sh b/setup_native/scripts/uninstall_linux.sh deleted file mode 100644 index 4bd4e1853..000000000 --- a/setup_native/scripts/uninstall_linux.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -# Linux deinstallation -# No parameter required, all RPMs listed in $HOME/.RPM_OFFICEDATABASE -# will be removed. - -if [ $# -ne 1 ] -then - echo - echo "Usage:" $0 "<office-installation-dir>" - echo " <inst-destination-dir>: directory where the office to be removed is installed" - echo - exit 2 -fi - -INSTALLDIR=$1 - -# Check for old style .RPM_OFFICEDATABASE first -if [ -d ${INSTALLDIR}/.RPM_OFFICEDATABASE ]; then - RPM_DB_PATH=${INSTALLDIR}/.RPM_OFFICEDATABASE -else - RPM_DB_PATH=${INSTALLDIR}/.RPM_DATABASE -fi - -# the RPM_DB_PATH must be absolute -if [ ! "${RPM_DB_PATH:0:1}" = "/" ]; then - RPM_DB_PATH=`cd ${RPM_DB_PATH}; pwd` -fi - -RPMLIST=`rpm --dbpath $RPM_DB_PATH --query --all` - -# Output ... -clear -echo "#########################################" -echo "# Deinstallation of Office RPMs #" -echo "#########################################" -echo -echo "Path to the RPM database: " $RPM_DB_PATH -echo "RPMs to deinstall:" -echo "$RPMLIST" -echo "====================================================================" -echo - -# Restore original bootstraprc -mv -f $1/program/bootstraprc.orig $1/program/bootstraprc - -rpm --dbpath $RPM_DB_PATH --erase $RPMLIST || exit 2 - -echo "Removing RPM database ..." -rm -rf $RPM_DB_PATH - -echo -echo "Deinstallation done." - -exit 0 |