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>2017-08-31 09:45:56 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-02 00:32:16 +0300
commit009c82e6cfb82cc40c49a9e253fe41bbbf779b13 (patch)
tree8213b20f68cfbe2941013eef540ec95a379bfb02 /batch.sh
parentcfc759969a9f0afdde35689e7185d49533e6c78f (diff)
shellcheck style fixesv0.24.12
Diffstat (limited to 'batch.sh')
-rwxr-xr-xbatch.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/batch.sh b/batch.sh
index 91d075d0..0600378f 100755
--- a/batch.sh
+++ b/batch.sh
@@ -22,14 +22,14 @@ IMGBASE="NextCloudPi_$( date "+%m-%d-%y" )_base.img"
export NO_CONFIG=1 # skip interactive configuration
-download_resize_raspbian_img 1G $IMGBASE || exit 1
+download_resize_raspbian_img 1G "$IMGBASE" || exit 1
-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 $NC_CONFIG $IP $( ls -1t *.img | head -1 ) || exit 1
- ./installer.sh nextcloudpi.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" || 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 $NC_CONFIG "$IP" "$( ls -1t *.img | head -1 )" || exit 1
+ ./installer.sh nextcloudpi.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1
+# ./installer.sh build-devel.sh "$IP" "$( ls -1t *.img | head -1 )" || exit 1
IMGFILE=$( ls -1t *.img | head -1 )
IMGNAME=$( basename "$IMGFILE" _base_prepare_lamp_nc-nextcloud_nc-init_nextcloudpi.img )
@@ -39,22 +39,22 @@ IMGNAME=$( basename "$IMGFILE" _base_prepare_lamp_nc-nextcloud_nc-init_nextcloud
## PACKING
pack_image "$IMGFILE" "$IMGNAME.img"
-md5sum $IMGNAME.tar.bz2
+md5sum "$IMGNAME.tar.bz2"
-rm -rf torrent/$IMGNAME
-mkdir -p torrent/$IMGNAME && cp $IMGNAME.tar.bz2 torrent/$IMGNAME
-create_torrent torrent/$IMGNAME
+rm -rf torrent/"$IMGNAME"
+mkdir -p torrent/"$IMGNAME" && cp "$IMGNAME.tar.bz2" torrent/"$IMGNAME"
+create_torrent torrent/"$IMGNAME"
mkdir -p partial && mv NextCloudPi*.bz2 partial
## TESTING
launch_qemu "$IMGNAME.img" &
sleep 10
-wait_SSH $IP
+wait_SSH "$IP"
sleep 180 # Wait for the services to start. Improve this ( wait HTTP && trusted domains )
-tests/tests.py $IP
+tests/tests.py "$IP"
-ssh_pi $IP sudo halt
+ssh_pi "$IP" sudo halt
rm -f *.img