fix template=
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 29s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m29s

This commit is contained in:
j
2026-01-01 20:23:58 +13:00
parent 813c689fc5
commit 065087053d
2 changed files with 20 additions and 24 deletions

View File

@@ -518,9 +518,9 @@
// 4. Generate template files inline (self-contained, no external dependencies)
// config/.template_info.env
std::string template_info_env = R"TMPL(# Template identifier - MUST match the directory name
TEMPLATE=)TMPL" + template_name + R"TMPL(
// template_info.env
std::string template_info_env = R"TMPL(# Template metadata - DO NOT EDIT
# This file is replaced when the template is updated.
# Requirements
REQUIRES_HOST_ROOT=false
@@ -535,7 +535,7 @@ IMAGE_TAG="alpine"
# Volume definitions
DATA_VOLUME="${CONTAINER_NAME}_data"
)TMPL";
if (!write_template_file(new_template_path + "/config/" + filenames::template_info_env, template_info_env)) return false;
if (!write_template_file(new_template_path + "/" + filenames::template_info_env, template_info_env)) return false;
// config/service.env
std::string service_env = R"TMPL(# Service identification (REQUIRED)
@@ -664,13 +664,13 @@ This template was created by 'dropshell create-template'.
QUICK START
-----------
1. Edit config/service.env to customize your deployment
2. Edit config/.template_info.env if you need different Docker settings
2. Edit template_info.env if you need different Docker settings
3. Modify the scripts as needed for your use case
4. Run 'dropshell validate <path>' to check for issues
REQUIRED FILES
--------------
- config/.template_info.env : Template metadata (don't change TEMPLATE=)
- template_info.env : Template metadata (do not edit)
- config/service.env : Service configuration (edit this!)
- install.sh : Installation script
- uninstall.sh : Uninstallation script (preserves data)
@@ -796,7 +796,7 @@ For full documentation, see: dropshell help templates
}
// ------------------------------------------------------------
// check TEMPLATE= line.
// check required variables in template_info.env
ordered_env_vars all_env_vars;
std::vector<std::string> env_files = {
"config/" + filenames::service_env,