couple more bugs found and fixed, also added in image_name correction. and pre-req.sh for quota fix on install. and some typos/log improvements

This commit is contained in:
gadget78
2025-07-12 05:35:54 +01:00
parent a937c28e09
commit e472bd179e
4 changed files with 45 additions and 34 deletions

View File

@@ -196,6 +196,11 @@ namespace hp
const std::string contract_dir = util::get_user_contract_dir(username, container_name);
auto pos = image_name.find("--");
if (pos != std::string::npos) {
image_name = image_name.substr(0, pos);
}
if (create_contract(username, owner_pubkey, contract_id, contract_dir, instance_ports, info) == -1 ||
create_container(username, image_name, container_name, contract_dir, instance_ports, info) == -1)
{