build: curl installer fixes

This commit is contained in:
nachoparker 2019-01-05 09:45:35 -07:00
parent 50435d678a
commit 67415a3b63
2 changed files with 5 additions and 4 deletions

View File

@ -31,6 +31,7 @@ prepare_dirs # tmp cache output
echo -e "\e[1m\n[ Build NCP ]\e[0m"
vagrant destroy -f
vagrant box update
vagrant up --provider=libvirt --provision
sudo qemu-img rebase -b "" "$VM"

View File

@ -34,7 +34,7 @@ type mysqld &>/dev/null && echo ">>> WARNING: existing mysqld configuration wil
# get install code
echo "Getting build code..."
apt-get update
apt-get install --no-install-recommends -y wget ca-certificates sudo
apt-get install --no-install-recommends -y wget ca-certificates sudo jq
pushd "$TMPDIR"
wget -O- --content-disposition https://github.com/nextcloud/nextcloudpi/archive/"$BRANCH"/latest.tar.gz \
@ -50,10 +50,10 @@ mkdir -p /usr/local/etc/ncp-config.d/
cp etc/ncp-config.d/nc-nextcloud.cfg /usr/local/etc/ncp-config.d/
install_app lamp.sh
install_app etc/ncp-config.d/nc-nextcloud.sh
run_app_unsafe etc/ncp-config.d/nc-nextcloud.sh
install_app bin/ncp/CONFIG/nc-nextcloud.sh
run_app_unsafe bin/ncp/CONFIG/nc-nextcloud.sh
install_app ncp.sh
run_app_unsafe etc/ncp-config.d/nc-init.sh
run_app_unsafe bin/ncp/CONFIG/nc-init.sh
popd