diff options
Diffstat (limited to 'databases/firebird2-server/scripts/pre-install')
-rw-r--r-- | databases/firebird2-server/scripts/pre-install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/firebird2-server/scripts/pre-install b/databases/firebird2-server/scripts/pre-install new file mode 100644 index 000000000000..a6e1b37a9008 --- /dev/null +++ b/databases/firebird2-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 |