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:
parent
f9f931f1e4
commit
c9b12c828d
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user