Skip to content

Commit

Permalink
Merge pull request #59 from LeiCoin-official/leicoin-pos-v2
Browse files Browse the repository at this point in the history
fully fixed all for ptero dockr image
  • Loading branch information
LeiCraft authored Jan 6, 2025
2 parents 3d41d51 + 937be80 commit edafeb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions docker/ptero/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
Expand All @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions docker/ptero/egg-lei-coin-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
"description": null,
Expand All @@ -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"
Expand Down

0 comments on commit edafeb3

Please sign in to comment.