mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 14:58:18 -07:00
Fix the versions.json download.
Make sure the directory exists.
This commit is contained in:
parent
8a3b884b74
commit
bbd49fd6be
@ -510,6 +510,8 @@ setPropertiesValue() {
|
|||||||
getCurrentMinecraftVersion() {
|
getCurrentMinecraftVersion() {
|
||||||
local JSON VERSION VERSIONS_DURATION TYPE
|
local JSON VERSION VERSIONS_DURATION TYPE
|
||||||
JSON="$DEFAULT_SERVER_LOCATION/versions.json"
|
JSON="$DEFAULT_SERVER_LOCATION/versions.json"
|
||||||
|
# Make sure the server software directory exists.
|
||||||
|
execute "mkdir -p $DEFAULT_SERVER_LOCATION" $USER_NAME
|
||||||
# Determine the version type for the current world.
|
# Determine the version type for the current world.
|
||||||
TYPE=$(getPropertiesValue "$1" "mscs-version-type" "$DEFAULT_VERSION_TYPE")
|
TYPE=$(getPropertiesValue "$1" "mscs-version-type" "$DEFAULT_VERSION_TYPE")
|
||||||
# The timeout for the versions.json cache.
|
# The timeout for the versions.json cache.
|
||||||
|
Loading…
Reference in New Issue
Block a user