From 0a5f9be5d5db6dd34246e10ee02d54a28285683c Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 21 Jun 2012 16:24:58 +0100 Subject: [PATCH] Get rid of the upload script now we're pushing to github --- upload.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 upload.sh diff --git a/upload.sh b/upload.sh deleted file mode 100755 index cfd32dbf8..000000000 --- a/upload.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# Upload the latest build of tiddlywiki5 to the server at http://www.tiddlywiki.com/ - -# Usage: -# upload [user] - -# default values -REMOTE_USER=${1:-$USER} -FROMDIR=$PWD/tmp/tw5 -HOST="tiddlywiki.com" -DIR="/var/www/www.tiddlywiki.com/htdocs/tiddlywiki5" -OWNER="www-data:www-data" -PERM="664" - -# setPermissions() -# Usage: -# setPermissions file -function setPermissions() { - COMMANDS="$COMMANDS sudo chown $OWNER $1;" - COMMANDS="$COMMANDS sudo chmod $PERM $1;" -} - -echo "uploading files" - -FILES="$FROMDIR/index.html $FROMDIR/static.html" -scp $FILES "$REMOTE_USER@$HOST:$DIR" - -echo "setting file permissions" - -COMMANDS="ssh $REMOTE_USER@$HOST" -setPermissions "$DIR/index.html" -setPermissions "$DIR/index.xml" - -# execute -COMMANDS="$COMMANDS exit;" -$COMMANDS