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:
-rw-r--r--.gitignore1
-rw-r--r--README.md4
-rwxr-xr-xbatch.sh13
-rwxr-xr-xetc/library.sh9
4 files changed, 24 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 392cb823..5abd024f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
*.img
*.bz2
qemu-raspbian-network/
+torrent/
diff --git a/README.md b/README.md
index 846a1c01..5fbd3fd9 100644
--- a/README.md
+++ b/README.md
@@ -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`
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
#
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