|
@ -74,3 +74,14 @@ minecraft:make-properties() { |
|
|
} > "$SERVICE_DATASTORE/${MINECRAFT_DATA}/server.properties" |
|
|
} > "$SERVICE_DATASTORE/${MINECRAFT_DATA}/server.properties" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
minecraft:config-hash() { |
|
|
|
|
|
local opts="$1" |
|
|
|
|
|
debug "Adding config hash to enable recreating upon config change." |
|
|
|
|
|
config_hash=$(e "$opts" | md5_compat) || exit 1 |
|
|
|
|
|
init-config-add " |
|
|
|
|
|
$SERVICE_NAME: |
|
|
|
|
|
labels: |
|
|
|
|
|
- compose.config_hash=$config_hash |
|
|
|
|
|
" |
|
|
|
|
|
} |