From c338313610732ac49c54d219e0e0de4c14e1872e Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Fri, 29 Sep 2023 07:35:53 +0200 Subject: [PATCH] IP4 > config.php to the end disabled Dashboard because nothing is on it, first start --- install/alpine-nextcloud-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index 336c082e..33f2f988 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -227,8 +227,6 @@ $CONFIG = array ( 'installed' => false, ); EOF -IP4=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) -sed -i "/0 => \'localhost\',/a \ \1 => '$IP4'," /usr/share/webapps/nextcloud/config/config.php msg_ok "Set up Nextcloud-Config" msg_info "Starting Alpine-Nextcloud" @@ -249,7 +247,10 @@ $STD su nextcloud -s /bin/sh -c "php82 occ maintenance:install \ --database-user '$DB_USER' --database-pass '$DB_PASS' \ --admin-user '$ADMIN_USER' --admin-pass '$ADMIN_PASS' \ --data-dir '/var/lib/nextcloud/data'" -$STD su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ background:cron' +$STD su nextcloud -s /bin/sh -c 'php82 occ background:cron' +$STD su nextcloud -s /bin/sh -c 'php82 occ app:disable dashboard' +IP4=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) +sed -i "/0 => \'localhost\',/a \ \1 => '$IP4'," /usr/share/webapps/nextcloud/config/config.php msg_ok "Run Setup-Wizard" motd_ssh