From b44cefe93f0100da53e10bc0c0a0c61a2772e1ff Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Mon, 10 Jun 2019 11:27:04 +0200 Subject: [PATCH] move NC_UPDATE to later in the script ...to avoid `sudo php command not found` in the beginning --- nextcloud_install_production.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index a9389d24..71ce57fa 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -44,10 +44,9 @@ fi # shellcheck disable=2034,2059 true # shellcheck source=lib.sh -NC_UPDATE=1 && FIRST_IFACE=1 && CHECK_CURRENT_REPO=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +FIRST_IFACE=1 && CHECK_CURRENT_REPO=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) unset FIRST_IFACE unset CHECK_CURRENT_REPO -unset NC_UPDATE # Check for errors + debug code and abort if something isn't right # 1 = ON @@ -258,6 +257,14 @@ check_command apt install -y \ # php"$PHPVER"-imagick \ # libmagickcore-6.q16-3-extra +# shellcheck disable=2034,2059 +true +# shellcheck source=lib.sh +NC_UPDATE=1 && FIRST_IFACE=1 && CHECK_CURRENT_REPO=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +unset FIRST_IFACE +unset CHECK_CURRENT_REPO +unset NC_UPDATE + # Enable php-fpm a2enconf php"$PHPVER"-fpm