mirror of https://github.com/tteck/Proxmox.git
parent
ee8fea07be
commit
c820596431
|
@ -17,15 +17,20 @@ msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y curl
|
||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
$STD apt-get install -y lbzip2
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing NextCloudPi (Patience)"
|
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)
|
$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
|
systemctl disable -q --now systemd-resolved
|
||||||
sed -i '{s|root:/usr/sbin/nologin|root:/bin/bash|g}' /etc/passwd
|
$STD apt-get remove -y systemd-resolved
|
||||||
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
|
|
||||||
msg_ok "Installed NextCloudPi"
|
msg_ok "Installed NextCloudPi"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
Loading…
Reference in New Issue