diff --git a/docker/ptero/docker-entrypoint.sh b/docker/ptero/docker-entrypoint.sh index c71b522..44e0687 100644 --- a/docker/ptero/docker-entrypoint.sh +++ b/docker/ptero/docker-entrypoint.sh @@ -38,7 +38,7 @@ function get_latest_version { } function get_current_version { - local version=$(./leicoin-node --version) + local version=$(leicoin-node --version 2>/dev/null) echo $version | cut -d ' ' -f 2 } @@ -49,9 +49,9 @@ function download_binary { echo "Downloading LeiCoin-Node version $version for architecture $arch..." - $http_response_code=$(curl --write-out '%{http_code}' -sL -o leicoin-node "$url") + http_response_code="$(curl --write-out '%{http_code}' -sL -o leicoin-node "$url")" - if [ $http_response_code -ne 200 ]; then + if [ "$http_response_code" != "200" ]; then echo "Failed to download LeiCoin-Node binary. HTTP response code: $http_response_code" exit 1 fi @@ -72,7 +72,6 @@ function main { # Extract Startup CMD STARTUP_CMD=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` extract_env_bool EXPERIMENTAL - extract_env_bool VERSION LOCAL_VERSION=$(get_current_version) diff --git a/docker/ptero/egg-lei-coin-node.json b/docker/ptero/egg-lei-coin-node.json index 4df4011..4da1c82 100644 --- a/docker/ptero/egg-lei-coin-node.json +++ b/docker/ptero/egg-lei-coin-node.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2025-01-06T17:59:44+01:00", + "exported_at": "2025-01-06T18:38:17+01:00", "name": "LeiCoin Node", "author": "leicraft@leicraftmc.de", "description": null, @@ -13,9 +13,9 @@ "LeiCoin Node Latest": "ghcr.io\/leicoin-official\/leicoin-node:ptero-latest" }, "file_denylist": [], - "startup": ".\/leicoin-node run", + "startup": ".\/leicoin-node run --port={{SERVER_PORT}}", "config": { - "files": "{\r\n \"config\/config.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"leicoin_net.port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}", + "files": "{}", "startup": "{\r\n \"done\": \"[Global] LeiCoin-Node started\"\r\n}", "logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}", "stop": "stop"