From 2d346cee06a99b9cdf8e14c0c88b54dc3e31b7e6 Mon Sep 17 00:00:00 2001 From: Dulana Peiris <57042272+du1ana@users.noreply.github.com> Date: Tue, 2 Sep 2025 03:59:49 +0530 Subject: [PATCH] Fixed several build issues (#436) --- ...icense Agreement 2.0.pdf => evernode-license.pdf | Bin installer/docker-install.sh | 9 +++++---- src/conf.hpp | 1 + src/hp_manager.cpp | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) rename Evernode Software License Agreement 2.0.pdf => evernode-license.pdf (100%) diff --git a/Evernode Software License Agreement 2.0.pdf b/evernode-license.pdf similarity index 100% rename from Evernode Software License Agreement 2.0.pdf rename to evernode-license.pdf diff --git a/installer/docker-install.sh b/installer/docker-install.sh index 2053944..d87e8bd 100755 --- a/installer/docker-install.sh +++ b/installer/docker-install.sh @@ -32,10 +32,11 @@ fi # Download the frozen image download file if not exists if [ ! -f "$docker_bin/download-frozen-image-v2.sh" ]; then - ! wget https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh --directory-prefix $docker_bin && - echo "Error downloading download-frozen-image-v2" && exit 1 - chmod +x $docker_bin/download-frozen-image-v2.sh - chown -R $(id -u):$(id -g) $docker_bin/download-frozen-image-v2.sh + mkdir -p "$docker_bin" + wget https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh -O "$docker_bin/download-frozen-image-v2.sh" || + { echo "Error downloading download-frozen-image-v2"; exit 1; } + chmod +x "$docker_bin/download-frozen-image-v2.sh" + chown -R $(id -u):$(id -g) "$docker_bin/download-frozen-image-v2.sh" fi exit 0 diff --git a/src/conf.hpp b/src/conf.hpp index 4ac0edf..0a6b70e 100644 --- a/src/conf.hpp +++ b/src/conf.hpp @@ -115,6 +115,7 @@ namespace conf std::string config_file; // Full path to the config file. std::string log_dir; // Log directory full path. std::string data_dir; // Data directory full path. + std::string dns_evernode_sh; }; // Global context struct exposed to the application. diff --git a/src/hp_manager.cpp b/src/hp_manager.cpp index 6f67a2e..aecce1f 100644 --- a/src/hp_manager.cpp +++ b/src/hp_manager.cpp @@ -165,7 +165,7 @@ namespace hp // return -1; // } - const std::string image_name = image; + std::string image_name = image; ports instance_ports; if (!vacant_ports.empty()) @@ -198,7 +198,7 @@ namespace hp auto pos = image_name.find("--"); if (pos != std::string::npos) { - image_name = image_name.substr(0, pos); + image_name = image_name.substr(0, pos); } if (create_contract(username, owner_pubkey, contract_id, contract_dir, instance_ports, info) == -1 ||