8
0
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:
alexpeshkoff 2008-04-22 09:26:55 +00:00
parent 9fc287f2fe
commit 58db61b19c
4 changed files with 4 additions and 3 deletions

View File

@ -128,6 +128,7 @@ stopSuperServerIfRunning() {
if [ -x "$init_d" ]
then
$init_d stop
sleep 1
fi
fi
}

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

@ -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
}

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"