aboutsummaryrefslogtreecommitdiff
path: root/databases/firebird20-server/scripts/pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'databases/firebird20-server/scripts/pre-install')
-rw-r--r--databases/firebird20-server/scripts/pre-install20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/firebird20-server/scripts/pre-install b/databases/firebird20-server/scripts/pre-install
new file mode 100644
index 000000000000..a6e1b37a9008
--- /dev/null
+++ b/databases/firebird20-server/scripts/pre-install
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ -d $PREFIX/firebird ]; then
+ if [ -d $PREFIX/firebird.old ]; then
+ rm -rf $PREFIX/firebird.old
+ fi
+ mv $PREFIX/firebird $PREFIX/firebird.old
+fi
+
+if [ -L /usr/interbase ]; then
+ rm -f /usr/interbase
+fi
+
+if [ -d /usr/interbase ]; then
+ mv /usr/interbase /usr/interbase.old
+fi
+
+ln -fs $PREFIX/firebird /usr/interbase
+
+perl $SCRIPTDIR/createuser