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-12-02 23:04:30 +0300
committernachoparker <nacho@ownyourbits.com>2017-12-04 00:28:22 +0300
commita13446ec5970fbc2f49460dab98c65542cb1ab90 (patch)
tree102a3dc3afefd35e1240c4dfc9c4d6b35d09d7f4 /buildlib.sh
parentd40360c82ef890ac743d1071adfdc57e549afdc7 (diff)
build: fixes
Diffstat (limited to 'buildlib.sh')
-rw-r--r--buildlib.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildlib.sh b/buildlib.sh
index 13d6068e..f0a04a40 100644
--- a/buildlib.sh
+++ b/buildlib.sh
@@ -241,7 +241,7 @@ function prepare_sshd()
function upload_ftp()
{
local IMGNAME="$1"
- [[ -f "$IMGNAME" ]] || { echo "No image file found, abort"; return 1; }
+ [[ -f torrent/"$IMGNAME"/"$IMGNAME".tar.bz2 ]] || { echo "No image file found, abort"; return 1; }
[[ "$FTPPASS" == "" ]] && { echo "No FTPPASS variable found, abort"; return 1; }
cd torrent
@@ -255,13 +255,14 @@ put $IMGNAME.torrent
bye
EOF
cd -
- cd $IMGNAME
+ cd torrent/$IMGNAME
ftp -np ftp.ownyourbits.com <<EOF
user root@ownyourbits.com $FTPPASS
cd $IMGNAME
binary
put $IMGNAME.tar.bz2
+put md5sum
bye
EOF
cd -