From a81be7c35c988e5d925199f154121f2085cdf555 Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 23 Dec 2022 21:40:15 +0100 Subject: [PATCH] update script to add the profiles option automatically Signed-off-by: Simon L --- manual-install/update-yaml.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manual-install/update-yaml.sh b/manual-install/update-yaml.sh index b9fb1373..78fcb211 100644 --- a/manual-install/update-yaml.sh +++ b/manual-install/update-yaml.sh @@ -92,6 +92,11 @@ do if [ "$name" != "nextcloud-aio-apache" ]; then OUTPUT="$(echo "$OUTPUT" | sed "/ $name:/i\ ")" fi + if ! echo "$name" | grep "apache$" && ! echo "$name" | grep "database$" && ! echo "$name" | grep "nextcloud$" && ! echo "$name" | grep "redis$"; then + sed -i '/container_name/d' containers.yml + SLIM_NAME="${name##nextcloud-aio-}" + OUTPUT="$(echo "$OUTPUT" | sed "/container_name: $name$/a\ \ \ \ profiles:\ \[\"$SLIM_NAME\"\]")" + fi done OUTPUT="$(echo "$OUTPUT" | sed "/restart: /a\ \ \ \ networks:\n\ \ \ \ \ \ - nextcloud-aio")"