8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 18:03:02 +01:00
firebird-mirror/builds/install/arch-specific/linux/super/postinstall.sh.in
2005-12-23 11:42:47 +00:00

40 lines
739 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
updateHostsDotFile
# start the db server so we can change the password
startService
# Change sysdba password
cd $FBRootDir
changeDBAPassword