mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-08-23 11:20:52 +00:00
Fixed several build issues (#436)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user