From 1f8161182ed0c7a5e34b643ff55e97c09bf90b2f Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sat, 17 Mar 2018 12:26:05 +0100 Subject: build: small script adjustments --- build-SD.sh | 21 +++++++++++---------- etc/nextcloudpi-config.d/nc-nextcloud.sh | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/build-SD.sh b/build-SD.sh index a61a9d89..615369c8 100755 --- a/build-SD.sh +++ b/build-SD.sh @@ -8,6 +8,7 @@ # Usage: ./batch.sh # +set -e source buildlib.sh # initializes $IMGNAME IP=$1 # First argument is the QEMU Raspbian IP address @@ -29,15 +30,15 @@ export NO_CONFIG=1 # skip interactive configuration ## BUILD -download_resize_raspbian_img 1G "$IMGBASE" || exit 1 +download_resize_raspbian_img 1G "$IMGBASE" -NO_HALT_STEP=1 ./installer.sh prepare.sh "$IP" "$IMGBASE" || exit 1 - ./installer.sh lamp.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1 - ./installer.sh $NC_INSTALL "$IP" "$( ls -1t *.img | head -1 )" || exit 1 - ./installer.sh nextcloudpi.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1 - ./installer.sh $NC_CONFIG "$IP" "$( ls -1t *.img | head -1 )" || exit 1 - ./installer.sh raspbian-cleanup.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1 -# ./installer.sh build-devel.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1 +NO_HALT_STEP=1 ./installer.sh prepare.sh "$IP" "$IMGBASE" + ./installer.sh lamp.sh "$IP" "$( ls -1t *.img | head -1 )" + ./installer.sh $NC_INSTALL "$IP" "$( ls -1t *.img | head -1 )" + ./installer.sh nextcloudpi.sh "$IP" "$( ls -1t *.img | head -1 )" + ./installer.sh $NC_CONFIG "$IP" "$( ls -1t *.img | head -1 )" + ./installer.sh raspbian-cleanup.sh "$IP" "$( ls -1t *.img | head -1 )" +# ./installer.sh build-devel.sh "$IP" "$( ls -1t *.img | head -1 )" ## PACKING @@ -54,14 +55,14 @@ launch_qemu "$IMGNAME.img" & sleep 10 wait_SSH "$IP" sleep 180 # Wait for the services to start. Improve this ( wait HTTP && trusted domains ) -tests/tests.py "$IP" || exit 1 +tests/tests.py "$IP" ssh_pi "$IP" sudo halt ## UPLOADING create_torrent "${IMGNAME}.tar.bz2" -upload_ftp "$IMGNAME" || true +upload_ftp "$IMGNAME" ## CLEANUP diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh index e6d129f0..73388c92 100644 --- a/etc/nextcloudpi-config.d/nc-nextcloud.sh +++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh @@ -42,8 +42,8 @@ install() { # Optional packets for Nextcloud and Apps apt-get update - $APTINSTALL -o "Dpkg::Options::=--force-confold" php-smbclient $APTINSTALL lbzip2 iputils-ping + $APTINSTALL php-smbclient # POSTFIX [[ "$ARMBIANBUILD" != 1 ]] && { -- cgit v1.2.3