8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-25 00:03:03 +01:00
firebird-mirror/builds/install/arch-specific/linux/super/postinstall.sh.in

40 lines
739 B
Bash
Raw Normal View History

2003-10-27 19:00:44 +01:00
#!/bin/sh
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# This runs after firebird archive is opened
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
origDir=`pwd`
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# Update /etc/services
newLine="gds_db 3050/tcp # Firebird SQL Database Remote Protocol"
replaceLineInFile /etc/services "$newLine" "^gds_db"
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# Update ownership of files
if [ $RunUser = firebird ]
then
# Prepare firebird user
2003-09-08 21:31:12 +02:00
addFirebirdUser
2005-04-29 20:24:44 +02:00
fi
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# Create the fbmgr shell script.
cat > $FBBin/fbmgr <<EOF
2003-07-09 00:59:57 +02:00
#!/bin/sh
2005-04-29 20:24:44 +02:00
FIREBIRD=$FBRootDir
2003-10-27 19:00:44 +01:00
export FIREBIRD
exec \$FIREBIRD/bin/fbmgr.bin \$@
2003-07-09 00:59:57 +02:00
EOF
2005-04-29 20:24:44 +02:00
# proceed with install tasks
fixFilePermissions
installInitdScript
createLinksForBackCompatibility
buildUninstallFile
2005-12-23 12:42:47 +01:00
updateHostsDotFile
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# start the db server so we can change the password
startService
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# Change sysdba password
cd $FBRootDir
changeDBAPassword