release-1.0.0 #24
@ -31,6 +31,8 @@ EXPOSE 25565/tcp
|
|||||||
CMD \
|
CMD \
|
||||||
# Add proxy secret
|
# Add proxy secret
|
||||||
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" forwarding.secret && \
|
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" forwarding.secret && \
|
||||||
|
# Substitute librelogin database path
|
||||||
|
sed -i "s~../../librelogin.db~../../../..${DATA_PATH}/librelogin.db~g" plugins/librelogin/config.conf && \
|
||||||
# Add servers to velocity.toml
|
# Add servers to velocity.toml
|
||||||
awk -v servers_str="${SERVERS}" '{ count=split(servers_str,servers_arr,";"); servers_fmt_str = ""; for (i = 1; i <= count; i++) servers_fmt_str = servers_fmt_str servers_arr[i] "\n"; sub(/_SERVERS_/,servers_fmt_str); print }' velocity.toml > velocity.toml.tmp && mv -T -f velocity.toml.tmp velocity.toml && \
|
awk -v servers_str="${SERVERS}" '{ count=split(servers_str,servers_arr,";"); servers_fmt_str = ""; for (i = 1; i <= count; i++) servers_fmt_str = servers_fmt_str servers_arr[i] "\n"; sub(/_SERVERS_/,servers_fmt_str); print }' velocity.toml > velocity.toml.tmp && mv -T -f velocity.toml.tmp velocity.toml && \
|
||||||
# Add try servers to velocity.toml
|
# Add try servers to velocity.toml
|
||||||
|
Loading…
Reference in New Issue
Block a user