8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 20:43:03 +01:00
firebird-mirror/builds/install/arch-specific/solaris/SS/postremove.in
robocop b8d1f00f94 - Corrections and changes to Adriano's commit, subject to his inspection.
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +00:00

40 lines
866 B
Bash

#!/bin/sh
#
# 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 paths.\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/inet/inetd.conf ]; then
# echo "Restarting inetd..."
# kill -HUP `ps -e | grep inetd | awk '{print $1}'`
#fi
# EOF