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/darwin/preupgrade-script

48 lines
1.5 KiB
Plaintext
Raw Normal View History

2007-03-09 11:32:58 +01:00
#!/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: ?????
2007-06-11 16:21:33 +02:00
FB_FW="/Library/Frameworks/Firebird.framework"
FB_UDF="/Library/Frameworks/Firebird.framework/Resources/English.lproj/var/UDF"
2007-03-09 11:32:58 +01:00
2007-06-11 16:21:33 +02:00
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/isc4.gdb"; then
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/isc4.gdb" /tmp/fb-security-database-update.fdb
2007-03-09 11:32:58 +01:00
fi
2007-06-11 16:21:33 +02:00
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/security.fdb"; then
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/security.fdb" /tmp/fb-security-database-update.fdb
fi
2007-06-11 16:21:33 +02:00
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/security2.fdb"; then
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/security2.fdb" /tmp/fb-security-database-update2.fdb
2007-03-09 11:32:58 +01:00
fi
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/aliases.conf"; then
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/aliases.conf" /tmp/fb-aliases.conf
fi
rm $FB_UDF/fbudf*
rm $FB_UDF/ib_udf*
mkdir /tmp/UDF_save
cp $FB_UDF/*.* /tmp/UDF_save
2007-03-09 11:32:58 +01:00
if [ -f /Library/StartupItems/Firebird/Firebird ]; then
/Library/StartupItems/Firebird/Firebird stop
rm -fr /Library/StartupItems/Firebird
2007-03-09 11:32:58 +01:00
fi
2007-06-11 16:21:33 +02:00
2007-12-07 13:19:37 +01:00
if [ -f /Library/LaunchDaemons/org.firebird.gds.plist ]; then
launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist
rm /Library/LaunchDaemons/org.firebird.gds.plist
2007-12-07 13:19:37 +01:00
fi
rm -fr "$FB_FW"
rm -fr /tmp/firebird
2007-03-09 11:32:58 +01:00
exit 0