diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-04 10:03:53 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-07-04 10:03:53 +0300 |
commit | 46c2487829973e7aa89ed4b462dd6af01a60ce1b (patch) | |
tree | 3a824c9a815f4bbc4f6a13e6d785401b1d53bf72 /batch.sh | |
parent | a82d2d150063a49950e05a7efc9e98382bf1f44b (diff) |
create torrent in library and batch
Diffstat (limited to 'batch.sh')
-rwxr-xr-x | batch.sh | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 # |