Skip to content

Commit f5d0916

Browse files
author
nacho
committed
build: small script adjustments
1 parent 974da0f commit f5d0916

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

build-SD.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Usage: ./batch.sh <DHCP QEMU image IP>
99
#
1010

11+
set -e
1112
source buildlib.sh # initializes $IMGNAME
1213

1314
IP=$1 # First argument is the QEMU Raspbian IP address
@@ -29,15 +30,15 @@ export NO_CONFIG=1 # skip interactive configuration
2930

3031
## BUILD
3132

32-
download_resize_raspbian_img 1G "$IMGBASE" || exit 1
33+
download_resize_raspbian_img 1G "$IMGBASE"
3334

34-
NO_HALT_STEP=1 ./installer.sh prepare.sh "$IP" "$IMGBASE" || exit 1
35-
./installer.sh lamp.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1
36-
./installer.sh $NC_INSTALL "$IP" "$( ls -1t *.img | head -1 )" || exit 1
37-
./installer.sh nextcloudpi.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1
38-
./installer.sh $NC_CONFIG "$IP" "$( ls -1t *.img | head -1 )" || exit 1
39-
./installer.sh raspbian-cleanup.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1
40-
# ./installer.sh build-devel.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1
35+
NO_HALT_STEP=1 ./installer.sh prepare.sh "$IP" "$IMGBASE"
36+
./installer.sh lamp.sh "$IP" "$( ls -1t *.img | head -1 )"
37+
./installer.sh $NC_INSTALL "$IP" "$( ls -1t *.img | head -1 )"
38+
./installer.sh nextcloudpi.sh "$IP" "$( ls -1t *.img | head -1 )"
39+
./installer.sh $NC_CONFIG "$IP" "$( ls -1t *.img | head -1 )"
40+
./installer.sh raspbian-cleanup.sh "$IP" "$( ls -1t *.img | head -1 )"
41+
# ./installer.sh build-devel.sh "$IP" "$( ls -1t *.img | head -1 )"
4142

4243
## PACKING
4344

@@ -54,14 +55,14 @@ launch_qemu "$IMGNAME.img" &
5455
sleep 10
5556
wait_SSH "$IP"
5657
sleep 180 # Wait for the services to start. Improve this ( wait HTTP && trusted domains )
57-
tests/tests.py "$IP" || exit 1
58+
tests/tests.py "$IP"
5859

5960
ssh_pi "$IP" sudo halt
6061

6162
## UPLOADING
6263

6364
create_torrent "${IMGNAME}.tar.bz2"
64-
upload_ftp "$IMGNAME" || true
65+
upload_ftp "$IMGNAME"
6566

6667
## CLEANUP
6768

etc/nextcloudpi-config.d/nc-nextcloud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ install()
4242
{
4343
# Optional packets for Nextcloud and Apps
4444
apt-get update
45-
$APTINSTALL -o "Dpkg::Options::=--force-confold" php-smbclient
4645
$APTINSTALL lbzip2 iputils-ping
46+
$APTINSTALL php-smbclient
4747

4848
# POSTFIX
4949
[[ "$ARMBIANBUILD" != 1 ]] && {

0 commit comments

Comments
 (0)