Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-03-17 14:26:05 +0300
committernachoparker <nacho@ownyourbits.com>2018-03-17 14:26:05 +0300
commit1f8161182ed0c7a5e34b643ff55e97c09bf90b2f (patch)
tree64ae562a7ce0badbb97abfcb329afd23bdfaaa1b
parentc6aeb4e873b3444f8b3d8abba041099e8b5d09bf (diff)
build: small script adjustmentsv0.52.2
-rwxr-xr-xbuild-SD.sh21
-rw-r--r--etc/nextcloudpi-config.d/nc-nextcloud.sh2
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 <DHCP QEMU image IP>
#
+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 ]] && {