mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 19:23:02 +01:00
39 lines
720 B
Bash
39 lines
720 B
Bash
#!/bin/sh
|
|
|
|
# This runs after firebird archive is opened
|
|
|
|
origDir=`pwd`
|
|
|
|
|
|
# Update /etc/services
|
|
newLine="gds_db 3050/tcp # Firebird SQL Database Remote Protocol"
|
|
replaceLineInFile /etc/services "$newLine" "^gds_db"
|
|
|
|
# Update ownership of files
|
|
if [ $RunUser = firebird ]
|
|
then
|
|
# Prepare firebird user
|
|
addFirebirdUser
|
|
fi
|
|
|
|
# Create the fbmgr shell script.
|
|
cat > $FBBin/fbmgr <<EOF
|
|
#!/bin/sh
|
|
FIREBIRD=$FBRootDir
|
|
export FIREBIRD
|
|
exec \$FIREBIRD/bin/fbmgr.bin \$@
|
|
EOF
|
|
|
|
# proceed with install tasks
|
|
fixFilePermissions
|
|
installInitdScript
|
|
createLinksForBackCompatibility
|
|
buildUninstallFile
|
|
|
|
# start the db server so we can change the password
|
|
startService
|
|
|
|
# Change sysdba password
|
|
cd $FBRootDir
|
|
changeDBAPassword
|