mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Fixed CORE-1826: changeRunUser.sh and restoreRootRunUser.sh scripts do not change run user in init.d script
This commit is contained in:
parent
9fc287f2fe
commit
58db61b19c
@ -128,6 +128,7 @@ stopSuperServerIfRunning() {
|
||||
if [ -x "$init_d" ]
|
||||
then
|
||||
$init_d stop
|
||||
sleep 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user