Mac install fixes, more internal use scripts.

This commit is contained in:
Adam Ierymenko 2014-01-08 23:12:03 -08:00
commit 3482d836ae
11 changed files with 38 additions and 43 deletions

View file

@ -18,8 +18,8 @@
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <path to secret signing identity> <path to destination folder for .nfo and installer>"
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <path to secret signing identity>"
exit 1
fi
@ -29,16 +29,11 @@ if [ ! -e zerotier-idtool ]; then
fi
secret="$1"
dest="$2"
if [ ! -e "$secret" ]; then
echo "Can't find $secret"
exit 1
fi
if [ ! -d "$dest" ]; then
echo "Can't find $dest directory"
exit 1
fi
for inst in `ls ZeroTierOneInstaller-*-*-*_*_*`; do
echo "Found installer: $inst"
@ -51,6 +46,4 @@ for inst in `ls ZeroTierOneInstaller-*-*-*_*_*`; do
echo "signedBy=`cat $secret | cut -d : -f 1`" >>"$nfo"
echo "ed25519=`./zerotier-idtool sign $secret $inst`" >>"$nfo"
echo "url=http://download.zerotier.com/$inst" >>"$nfo"
cp $inst $nfo $dest
rm -f $nfo
done

View file

@ -0,0 +1,5 @@
#!/bin/bash
# Completely useless to outsiders. :)
scp ZeroTierOneInstaller-*-*-*_*_* nyarlathotep.zerotier.com:/www/download.zerotier.com/htdocs