Update and rename nextcloudpi-install.sh to nextcloudpi-v5-install.sh

This commit is contained in:
tteckster 2023-01-07 10:05:16 -05:00 committed by GitHub
parent aef6478a97
commit 31db188cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ set -o pipefail
shopt -s expand_aliases shopt -s expand_aliases
alias die='EXIT=$? LINE=$LINENO error_exit' alias die='EXIT=$? LINE=$LINENO error_exit'
trap die ERR trap die ERR
silent() { "$@" > /dev/null 2>&1; }
function error_exit() { function error_exit() {
trap - ERR trap - ERR
local reason="Unknown failure occurred." local reason="Unknown failure occurred."
@ -76,19 +76,19 @@ alias die='EXIT=$? LINE=$LINENO error_exit'
set -e set -e
msg_info "Updating Container OS" msg_info "Updating Container OS"
apt-get update &>/dev/null $STD apt-get update
apt-get -y upgrade &>/dev/null $STD apt-get -y upgrade
msg_ok "Updated Container OS" msg_ok "Updated Container OS"
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
apt-get install -y curl &>/dev/null $STD apt-get install -y curl
apt-get install -y sudo &>/dev/null $STD apt-get install -y sudo
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing NextCloudPi (Patience)" msg_info "Installing NextCloudPi (Patience)"
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash &>/dev/null $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/3 => 'nextcloudpi.lan',/3 => '0.0.0.0',/g" /var/www/nextcloud/config/config.php
sudo service apache2 restart service apache2 restart
msg_ok "Installed NextCloudPi" msg_ok "Installed NextCloudPi"
PASS=$(grep -w "root" /etc/shadow | cut -b6) PASS=$(grep -w "root" /etc/shadow | cut -b6)
@ -113,6 +113,6 @@ if [[ "${SSH_ROOT}" == "yes" ]]; then
fi fi
msg_info "Cleaning up" msg_info "Cleaning up"
apt-get autoremove >/dev/null $STD apt-get autoremove
apt-get autoclean >/dev/null $STD apt-get autoclean
msg_ok "Cleaned" msg_ok "Cleaned"