diff --git a/nextcloud-startup-script.sh b/nextcloud-startup-script.sh index a3f3b154..8dd7fcf6 100644 --- a/nextcloud-startup-script.sh +++ b/nextcloud-startup-script.sh @@ -12,7 +12,7 @@ NCPATH=$WWW_ROOT/nextcloud NCDATA=/var/ncdata SCRIPTS=/var/scripts PW_FILE=/var/mysql_password.txt # Keep in sync with nextcloud_install_production.sh -IFACE=$(lshw -c network | grep "logical name" | awk '{print $3}') +IFACE=$(lshw -c network | grep "logical name" | awk '{print $3; exit}') CLEARBOOT=$(dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge) PHPMYADMIN_CONF="/etc/apache2/conf-available/phpmyadmin.conf" GITHUB_REPO="https://raw.githubusercontent.com/nextcloud/vm/master" diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 31a20e55..728f3813 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -29,7 +29,7 @@ NCDATA=/var/ncdata SSL_CONF="/etc/apache2/sites-available/nextcloud_ssl_domain_self_signed.conf" HTTP_CONF="/etc/apache2/sites-available/nextcloud_http_domain_self_signed.conf" # Network -IFACE=$(lshw -c network | grep "logical name" | awk '{print $3}') +IFACE=$(lshw -c network | grep "logical name" | awk '{print $3; exit}') ADDRESS=$(hostname -I | cut -d ' ' -f 1) # Repositories GITHUB_REPO="https://raw.githubusercontent.com/nextcloud/vm/master"