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

Front-ported misc install scripts changes from 2.1

This commit is contained in:
alexpeshkoff 2008-05-04 14:27:36 +00:00
parent f9f931f1e4
commit c9b12c828d
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ fi
# Update the /etc/inetd.conf or xinetd entry or /etc/init.d/firebird
echo "Updating /etc file(s)"
updateInetdServiceEntry
changeInitRunUser
changeInitRunUser $RunUser
# Update ownership and SUID bits for programs.
echo "Updating $FBRootDir"

View File

@ -22,7 +22,7 @@ export ArchiveMainFile
# Create temporary file. In case mktemp failed, do something...
MakeTemp() {
TmpFile=`mktemp /tmp/firebird_install.XXXXXX`
TmpFile=`mktemp -q /tmp/firebird_install.XXXXXX`
if [ $? -ne 0 ]
then
TmpFile=/tmp/firebird_install
@ -312,7 +312,7 @@ editFile() {
Starting=$2
NewLine=$3
AwkProgram="(\$1 == \"$Starting\") {\$0=\"$NewLine\"} {print \$0}"
AwkProgram="(/^$Starting.*/ || \$1 == \"$Starting\") {\$0=\"$NewLine\"} {print \$0}"
MakeTemp
awk "$AwkProgram" <$FileName >$TmpFile && mv $TmpFile $FileName || rm -f $TmpFile
}