move NC_UPDATE to later in the script

...to avoid `sudo php command not found` in the beginning
This commit is contained in:
Daniel Hansson 2019-06-10 11:27:04 +02:00 committed by GitHub
parent 9299de84c7
commit b44cefe93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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