IP4 > config.php to the end

disabled Dashboard because nothing is on it, first start
pull/1854/head
nicedevil007 2 years ago
parent 2e937a4102
commit c338313610
  1. 7
      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

Loading…
Cancel
Save