mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Use new ServerMode parameter in the script
This commit is contained in:
parent
53765456b9
commit
4d201f3bc0
@ -33,6 +33,12 @@ AskQuestion "Which option would you like to choose: (super|classic) [super] " "s
|
||||
multiAnswer=$Answer
|
||||
|
||||
case "$multiAnswer" in
|
||||
s)
|
||||
multiAnswer=super
|
||||
;;
|
||||
c)
|
||||
multiAnswer=classic
|
||||
;;
|
||||
super)
|
||||
;;
|
||||
classic)
|
||||
@ -51,14 +57,12 @@ removeServiceAutostart
|
||||
echo "Starting firebird in $multiAnswer server mode..."
|
||||
fbconf="@FB_CONFDIR@/firebird.conf"
|
||||
if [ $multiAnswer == classic ]; then
|
||||
replaceLineInFile $fbconf "SharedCache = false" "^SharedCache"
|
||||
replaceLineInFile $fbconf "SharedDatabase = true" "^SharedDatabase"
|
||||
replaceLineInFile $fbconf "ServerMode = Classic" "^ServerMode"
|
||||
|
||||
updateInetdServiceEntry
|
||||
resetInetdServer
|
||||
else
|
||||
replaceLineInFile $fbconf "SharedCache = true" "^SharedCache"
|
||||
replaceLineInFile $fbconf "SharedDatabase = false" "^SharedDatabase"
|
||||
replaceLineInFile $fbconf "ServerMode = Super" "^ServerMode"
|
||||
|
||||
installInitdScript
|
||||
startService
|
||||
|
Loading…
Reference in New Issue
Block a user