mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 22:15:53 +00:00
fix yq
This commit is contained in:
@@ -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 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
|
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 -i "
|
||||||
yq eval "(.services.npmplus.environment |= map(select(. != \"ACME_EMAIL=*\"))) + [\"ACME_EMAIL=$ACME_EMAIL_INPUT\"]" -i /opt/compose.yaml
|
.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"
|
msg_info "Starting NPM Plus"
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|||||||
Reference in New Issue
Block a user