From 002d482a4b11c9a9083fadfd4e6473380a956f32 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sun, 18 Jun 2023 14:20:21 -0500 Subject: [PATCH] Update new install logic --- root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run index adbf1c5..c843991 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run @@ -108,9 +108,11 @@ if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_instal echo "The following apps have been disabled:" diff /tmp/list_before /tmp/list_after | grep '<' | cut -d- -f2 | cut -d: -f1 else - # Install - echo "New nextcloud instance" - echo "Please run the web-based installer on first connect!" + if [ "${installed_version}" = "0.0.0.0" ]; then + # Install + echo "New nextcloud instance" + echo "Please run the web-based installer on first connect!" + fi fi rm -f /tmp/list_before /tmp/list_after