Valheim server does not uses quotes around the string.
This commit is contained in:
parent
3ead759cd9
commit
9123e06d56
10
bootstrap
10
bootstrap
|
|
@ -22,7 +22,7 @@ getparams() {
|
||||||
echo "The variable NAME is not defined. Please, fix and run again."
|
echo "The variable NAME is not defined. Please, fix and run again."
|
||||||
return -1
|
return -1
|
||||||
else
|
else
|
||||||
params="$params -name \"${NAME}\""
|
params="$params -name ${NAME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Name of the world MANDATORY
|
## Name of the world MANDATORY
|
||||||
|
|
@ -30,7 +30,7 @@ getparams() {
|
||||||
echo "The variable WORLD is not defined. Fixed and run again."
|
echo "The variable WORLD is not defined. Fixed and run again."
|
||||||
return -1
|
return -1
|
||||||
else
|
else
|
||||||
params="$params -world \"${WORLD}\""
|
params="$params -world ${WORLD}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Save folder for the data (if not defined can run, but the world will be saved on the container, bad idea):
|
## Save folder for the data (if not defined can run, but the world will be saved on the container, bad idea):
|
||||||
|
|
@ -38,14 +38,14 @@ getparams() {
|
||||||
echo "The variable SAVEDIR is not defined. Fixed and run again."
|
echo "The variable SAVEDIR is not defined. Fixed and run again."
|
||||||
return -1
|
return -1
|
||||||
else
|
else
|
||||||
params="$params -savedir \"${SAVEDIR}\""
|
params="$params -savedir ${SAVEDIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Password for the server, if not defined, no password = free access:
|
## Password for the server, if not defined, no password = free access:
|
||||||
if [[ -z "${PASSWORD}" ]]; then
|
if [[ -z "${PASSWORD}" ]]; then
|
||||||
echo "The variable PASSWORD is not defined. Running WITHOUT password."
|
echo "The variable PASSWORD is not defined. Running WITHOUT password."
|
||||||
else
|
else
|
||||||
params="$params -password \"${PASSWORD}\""
|
params="$params -password ${PASSWORD}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,7 +69,9 @@ main() {
|
||||||
cd /root/valheim_server
|
cd /root/valheim_server
|
||||||
|
|
||||||
## Checking the final parameters to use:
|
## Checking the final parameters to use:
|
||||||
|
echo "##############################"
|
||||||
echo "Final Valheim parameters to run: $params"
|
echo "Final Valheim parameters to run: $params"
|
||||||
|
echo "##############################"
|
||||||
|
|
||||||
# Starting the server:
|
# Starting the server:
|
||||||
box64 ./valheim_server.x86_64 $params
|
box64 ./valheim_server.x86_64 $params
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue