From 791c381706b030fdaec988c99a522e661e2b5a45 Mon Sep 17 00:00:00 2001 From: Zoey Date: Tue, 8 Aug 2023 20:38:24 +0200 Subject: [PATCH] fix jq command Signed-off-by: Zoey --- manual-install/update-yaml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual-install/update-yaml.sh b/manual-install/update-yaml.sh index 40316589..cde58ed9 100644 --- a/manual-install/update-yaml.sh +++ b/manual-install/update-yaml.sh @@ -20,7 +20,7 @@ OUTPUT="$(echo "$OUTPUT" | jq 'del(.services[].nextcloud_exec_commands)')" OUTPUT="$(echo "$OUTPUT" | jq 'del(.services[] | select(.container_name == "nextcloud-aio-watchtower"))')" OUTPUT="$(echo "$OUTPUT" | jq 'del(.services[] | select(.container_name == "nextcloud-aio-domaincheck"))')" OUTPUT="$(echo "$OUTPUT" | jq 'del(.services[] | select(.container_name == "nextcloud-aio-borgbackup"))')" -OUTPUT="$(echo "$OUTPUT" | jq '.services[].depends_on |= map({ (.): { "condition": "service_started", "required": false } })')" +OUTPUT="$(echo "$OUTPUT" | jq '.services[] |= if has("depends_on") then .depends_on |= map({ (.): { "condition": "service_started", "required": false } }) else . end')" snap install yq mkdir -p ./manual-install