From 04835aef202c2214d296d64d4b87c0c54fbeb11c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 10 Mar 2025 15:51:12 +0100 Subject: [PATCH] fix yq --- install/npm-plus-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/npm-plus-install.sh b/install/npm-plus-install.sh index 5d2e55d..8c9b827 100644 --- a/install/npm-plus-install.sh +++ b/install/npm-plus-install.sh @@ -51,8 +51,11 @@ msg_ok "Get NginxProxyManager Plus" read -r -p "Enter your TZ Timezone (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List): " TZ_INPUT read -r -p "Enter your ACME Email: " ACME_EMAIL_INPUT -yq eval "(.services.npmplus.environment |= map(select(. != \"TZ=*\"))) + [\"TZ=$TZ_INPUT\"]" -i /opt/compose.yaml -yq eval "(.services.npmplus.environment |= map(select(. != \"ACME_EMAIL=*\"))) + [\"ACME_EMAIL=$ACME_EMAIL_INPUT\"]" -i /opt/compose.yaml +yq -i " + .services.npmplus.environment |= + (map(select(. != \"TZ=*\" and . != \"ACME_EMAIL=*\")) + + [\"TZ=$TZ_INPUT\", \"ACME_EMAIL=$ACME_EMAIL_INPUT\"]) +" /opt/compose.yaml msg_info "Starting NPM Plus" docker compose up -d