mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-25 00:43:03 +01:00
28 lines
1021 B
Plaintext
28 lines
1021 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# Script args:
|
||
|
# $0: full path to script
|
||
|
# $1: full path to top level package dir, no trailing slash
|
||
|
# $2: full path to installed location
|
||
|
# $3: ????? Path to install Volume????
|
||
|
# $4: ?????
|
||
|
|
||
|
|
||
|
if test -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.gdb"; then
|
||
|
mv -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.gdb" /tmp/fb-security-database-update.fdb
|
||
|
fi
|
||
|
if test -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.fdb"; then
|
||
|
mv -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.fdb" /tmp/fb-security-database-update.fdb
|
||
|
fi
|
||
|
if test -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/security.fdb"; then
|
||
|
mv -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/security.fdb" /tmp/fb-security-database-update.fdb
|
||
|
fi
|
||
|
|
||
|
|
||
|
if [ -f /Library/StartupItems/Firebird/Firebird ]; then
|
||
|
/Library/StartupItems/Firebird/Firebird stop
|
||
|
fi
|
||
|
rm -rf "$2/Firebird.framework"
|
||
|
rm -rf /Library/StartupItems/Firebird
|
||
|
exit 0
|