diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | batch.sh | 13 | ||||
-rwxr-xr-x | etc/library.sh | 9 |
4 files changed, 24 insertions, 3 deletions
@@ -2,3 +2,4 @@ *.img *.bz2 qemu-raspbian-network/ +torrent/ @@ -23,6 +23,7 @@ This code also generates the [NextCloudPi ARM docker image](https://hub.docker.c * HSTS * Cron jobs for Nextcloud * Sane configuration defaults +* Full emoji support ( NEW 05-24-2017 ) * Secure ## Extras @@ -38,8 +39,11 @@ This code also generates the [NextCloudPi ARM docker image](https://hub.docker.c * SAMBA ready to share your files with Windows/Mac/Linux ( NEW 04-16-2017 ) * USB automount ( NEW 05-24-2017 ) * Remote updates ( NEW 03-31-2017 ) + * Unofficial Nextcloud News App installer ( NEW 05-24-2017 ) * NextCloud backup and restore ( NEW 05-24-2017 ) * NextCloud online installation ( NEW 05-24-2017 ) + * Format USB drive to ext4 ( NEW 07-03-2017 ) + * UPnP automatic port forwarding ( NEW 07-03-2017 ) Any extra can be installed independently in a running Raspbian instance through SSH. See `installer.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 # diff --git a/etc/library.sh b/etc/library.sh index 8efeab64..1823cddc 100755 --- a/etc/library.sh +++ b/etc/library.sh @@ -288,6 +288,15 @@ function pack_image() echo -e "$TARNAME packed successfully" } +function create_torrent() +{ + [[ "$1" == "" ]] && { echo "No directory specified"; exit 1; } + test -d $1 || { echo "$1 not found or is not a directory" ; exit 1; } + + md5sum $1/*.bz2 > $1/md5sum + + createtorrent -a udp://tracker.opentrackr.org -p 1337 -c "NextCloudPi. Nextcloud for Raspberry Pi image" $1 $1.torrent +} # License # # This script is free software; you can redistribute it and/or modify it |