mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
Update nextcloudpi-install.sh
test
This commit is contained in:
parent
ee8fea07be
commit
c820596431
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user