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-07-04 10:03:53 +0300
committernachoparker <nacho@ownyourbits.com>2017-07-04 10:03:53 +0300
commit46c2487829973e7aa89ed4b462dd6af01a60ce1b (patch)
tree3a824c9a815f4bbc4f6a13e6d785401b1d53bf72 /batch.sh
parenta82d2d150063a49950e05a7efc9e98382bf1f44b (diff)
create torrent in library and batch
Diffstat (limited to 'batch.sh')
-rwxr-xr-xbatch.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/batch.sh b/batch.sh
index 92e52c73..53019742 100755
--- a/batch.sh
+++ b/batch.sh
@@ -29,12 +29,19 @@ NO_HALT_STEP=1 ./installer.sh prepare.sh $IP $IMGBASE ||
# ./installer.sh test-devel.sh $IP $( ls -1t *.img | head -1 ) || exit 1
IMGFILE=$( ls -1t *.img | head -1 )
-IMGOUT=$( basename "$IMGFILE" _base_prepare_lamp_nc-nextcloud_nc-init_nextcloudpi.img ).img
+IMGNAME=$( basename "$IMGFILE" _base_prepare_lamp_nc-nextcloud_nc-init_nextcloudpi.img )
-pack_image "$IMGFILE" "$IMGOUT"
-md5sum $( ls -1t *.tar.bz2 | head -1 )
+[[ "$IMGNAME" != "" ]] || exit 1
+
+pack_image "$IMGFILE" "$IMGNAME.img"
+md5sum $IMGNAME.tar.bz2
+
+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
+rm *.img
# License
#