mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-12 23:54:01 +09:00
test(dashboard): name the templated nginx config in the buffer check
The console nginx config now ships as an entrypoint template, and a failure message naming the old conf.d path sends the reader to a file the Containerfile no longer writes. Assisted-by: LLM Signed-off-by: ZverGuy <maximbel2003@gmail.com>
This commit is contained in:
1 parent
74a7a44423
commit
d452b30e42
1 file changed
+1
-1
@@ -41,7 +41,7 @@ nginx_size_kib() {
|
||||
inblock && /^EOF$/ { inblock = 0; next }
|
||||
inblock { print }
|
||||
' "$CONSOLE_CONTAINERFILE")
|
||||
[ -n "$conf" ] || { echo "no /etc/nginx/conf.d/default.conf heredoc found in $CONSOLE_CONTAINERFILE" >&2; exit 1; }
|
||||
[ -n "$conf" ] || { echo "no /etc/nginx/templates/default.conf.template heredoc found in $CONSOLE_CONTAINERFILE" >&2; exit 1; }
|
||||
|
||||
# An extraction that silently grabbed the wrong slice would let every
|
||||
# assertion below pass on an empty-ish config, so anchor on a line the
|
||||
|
||||
Reference in new issue
Block a user