8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 19:23:03 +01:00

Install firebird.conf to installation root on Linux

This commit is contained in:
skidder 2003-04-28 19:48:23 +00:00
parent 938f0a2f0f
commit b509cd309c
3 changed files with 5 additions and 43 deletions

View File

@ -30,7 +30,7 @@
# Contributor(s): # Contributor(s):
# #
# #
# $Id: makeInstallImage.sh.in,v 1.9 2003-04-03 21:41:07 skidder Exp $ # $Id: makeInstallImage.sh.in,v 1.10 2003-04-28 19:48:20 skidder Exp $
# #
# Script to copy install files from the build/transport area # Script to copy install files from the build/transport area
@ -166,7 +166,7 @@ copyFiles() {
cp $BuildRootDir/doc/README.user $DestDir/README cp $BuildRootDir/doc/README.user $DestDir/README
cp $BuiltFBDir/misc/firebird.xinetd $DestDir/misc/firebird.xinetd cp $BuiltFBDir/misc/firebird.xinetd $DestDir/misc/firebird.xinetd
cp $BuiltFBDir/misc/firebird.conf $DestDir/misc/firebird.conf cp $BuiltFBDir/misc/firebird.conf $DestDir/firebird.conf
# Create links from /usr/lib to install area. # Create links from /usr/lib to install area.

View File

@ -31,7 +31,7 @@
# Contributor(s): # Contributor(s):
# #
# #
# $Id: postinstall.sh.in,v 1.7 2003-04-03 21:41:07 skidder Exp $ # $Id: postinstall.sh.in,v 1.8 2003-04-28 19:48:22 skidder Exp $
# #
# The post install script for Firebird Classic # The post install script for Firebird Classic
@ -590,30 +590,6 @@ buildUninstallFile() {
fi fi
} }
#------------------------------------------------------------------------
# UpdateConfigFile
# Ensure a configuration file /etc/firebird.conf exists.
# save the original one if required.
updateConfigFile() {
configFile=/etc/firebird.conf
if [ -f $configFile ]
then
ArchiveDateTag=`date +"%Y%m%d_%H%M"`
saveConfigFile=$configFile.$ArchiveDateTag
echo "saving previous $configFile as $saveConfigFile"
cp $configFile $configFile.$ArchiveDateTag
fi
cp $FBRootDir/misc/firebird.conf $configFile
}
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# resetXinitdServer # resetXinitdServer
# Check for both inetd and xinetd, only one will actually be running. # Check for both inetd and xinetd, only one will actually be running.
@ -726,7 +702,6 @@ createLinksForBackCompatibility() {
fixFilePermissions fixFilePermissions
fi fi
updateConfigFile
createLinksForBackCompatibility createLinksForBackCompatibility
buildUninstallFile buildUninstallFile

View File

@ -31,7 +31,7 @@
# Contributor(s): # Contributor(s):
# #
# #
# $Id: preinstall.sh.in,v 1.3 2003-03-20 11:11:51 aafemt Exp $ # $Id: preinstall.sh.in,v 1.4 2003-04-28 19:48:23 skidder Exp $
# #
@ -245,7 +245,7 @@ archivePriorInstallSystemFilesX() {
fi fi
done done
for i in usr/sbin/rcfirebird etc/init.d/firebird etc/rc.d/init.d/firebird etc/firebird.conf for i in usr/sbin/rcfirebird etc/init.d/firebird etc/rc.d/init.d/firebird
do do
DestFile=$i DestFile=$i
if [ -e $DestFile ] if [ -e $DestFile ]
@ -319,19 +319,6 @@ archivePriorInstallSystemFiles() {
deleteFileList="$archiveFileList" deleteFileList="$archiveFileList"
# The following files want to be archived just in case but are not deleted
# since they are a little special and are handled specially in the install
for i in etc/firebird.conf
do
DestFile=./$i
if [ -e /$DestFile ]
then
archiveFileList="$archiveFileList $DestFile"
fi
done
DestFile="$FBRootDir" DestFile="$FBRootDir"
if [ ! -z "$archiveFileList" ] if [ ! -z "$archiveFileList" ]