mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# $Header: /home/job/firebird/cvs-backup/firebird2/builds/install/arch-specific/sinixz/postremove.in,v 1.1 2003-07-08 22:58:56 brodsom Exp $
|
||
|
#------------------------------------------------------------------------------
|
||
|
# $Copyright:
|
||
|
# Copyright (C) Siemens Nixdorf Informationssysteme AG 1994 - 1998
|
||
|
# Copyright (C) Siemens AG 1998 1999
|
||
|
# Copyright (C) Fujitsu Siemens Computers GmbH 1999 2000
|
||
|
# All rights reserved
|
||
|
# $
|
||
|
#------------------------------------------------------------------------------
|
||
|
|
||
|
# Remove lock and log files
|
||
|
FIREBIRD=@prefix@
|
||
|
rm -rf $FIREBIRD
|
||
|
|
||
|
# restore old modules
|
||
|
|
||
|
case "$LANG" in
|
||
|
De*) echo "Wiederherstellen des Status vor $PKGINST ...";;
|
||
|
*) echo "restoring state before $PKGINST ..."
|
||
|
esac
|
||
|
|
||
|
cd ${PKGSAV}
|
||
|
find . -type f -exec /usr/bin/uncompress {} \;
|
||
|
ERROR_UNCOMPRESS=`find . -type f -name '*.Z' -print`
|
||
|
|
||
|
if [ -n "$ERROR_UNCOMPRESS" ]
|
||
|
then
|
||
|
echo "uncompress of \"${ERROR_UNCOMPRESS}\" failed, \nrun uncompress in ${PKGSAV} manually, \nand rest
|
||
|
ore the uncompressed files in the correct pathes.\n\n"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
find . -type f -depth -print | cpio -pdum /
|
||
|
|
||
|
if [ $? -ne 0 ]
|
||
|
then
|
||
|
echo "restoring of saved files failed, \n please restore files in ${PKGSAV} manually!\n\n"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -f /etc/inetd.conf ]; then
|
||
|
echo "Restarting inetd..."
|
||
|
kill -HUP `ps -e | grep inetd | awk '{print $1}'`
|
||
|
fi
|
||
|
|
||
|
# EOF
|