diff --git a/install/nextcloudpi-install.sh b/install/nextcloudpi-install.sh index 9a846d45..24306f24 100644 --- a/install/nextcloudpi-install.sh +++ b/install/nextcloudpi-install.sh @@ -17,15 +17,20 @@ msg_info "Installing Dependencies" $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc -$STD apt-get install -y lbzip2 msg_ok "Installed Dependencies" msg_info "Installing NextCloudPi (Patience)" +$STD apt-get install -y systemd-resolved +systemctl enable -q --now systemd-resolved +cat <<'EOF' >/etc/systemd/resolved.conf +[Resolve] +DNS=8.8.8.8 +FallbackDNS=8.8.4.4 +EOF +systemctl restart systemd-resolved $STD bash <(curl -fsSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh) -sed -i "s/3 => 'nextcloudpi.lan',/3 => '0.0.0.0',/g" /var/www/nextcloud/config/config.php -sed -i '{s|root:/usr/sbin/nologin|root:/bin/bash|g}' /etc/passwd -sed -i 's/memory_limit = .*/memory_limit = 512M/' /etc/php/8.1/fpm/php.ini /etc/php/8.1/cli/php.ini -service apache2 restart +systemctl disable -q --now systemd-resolved +$STD apt-get remove -y systemd-resolved msg_ok "Installed NextCloudPi" motd_ssh