| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# Script args: |
| 4 |
# $0: full path to script |
| 5 |
# $1: full path to top level package dir, no trailing slash |
| 6 |
# $2: full path to installed location |
| 7 |
# $3: ????? Path to install Volume???? |
| 8 |
# $4: ????? |
| 9 |
|
| 10 |
FB_FW="/Library/Frameworks/Firebird.framework" |
| 11 |
FB_UDF="/Library/Frameworks/Firebird.framework/Resources/English.lproj/var/UDF" |
| 12 |
|
| 13 |
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/security3.fdb"; then |
| 14 |
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/security3.fdb" /tmp/fb-security-database-update3.fdb |
| 15 |
fi |
| 16 |
|
| 17 |
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/aliases.conf"; then |
| 18 |
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/aliases.conf" /tmp/fb-aliases.conf |
| 19 |
fi |
| 20 |
|
| 21 |
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/databases.conf"; then |
| 22 |
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/databases.conf" /tmp/fb-databases.conf |
| 23 |
fi |
| 24 |
|
| 25 |
rm $FB_UDF/fbudf* |
| 26 |
rm $FB_UDF/ib_udf* |
| 27 |
mkdir /tmp/UDF_save |
| 28 |
cp $FB_UDF/*.* /tmp/UDF_save |
| 29 |
|
| 30 |
if [ -f /Library/StartupItems/Firebird/Firebird ]; then |
| 31 |
/Library/StartupItems/Firebird/Firebird stop |
| 32 |
rm -fr /Library/StartupItems/Firebird |
| 33 |
fi |
| 34 |
|
| 35 |
if [ -f /Library/LaunchDaemons/org.firebird.gds.plist ]; then |
| 36 |
launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist |
| 37 |
rm /Library/LaunchDaemons/org.firebird.gds.plist |
| 38 |
fi |
| 39 |
|
| 40 |
rm -fr "$FB_FW" |
| 41 |
rm -fr /tmp/firebird |
| 42 |
|
| 43 |
exit 0 |