r93868 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93867‎ | r93868 | r93869 >
Date:23:33, 3 August 2011
Author:ben
Status:deferred
Tags:
Comment:
adding protection against running the script without a valid ssh agent
Modified paths:
  • /trunk/debs/wikimedia-task-dns-auth/authdns-update (modified) (history)

Diff [purge]

Index: trunk/debs/wikimedia-task-dns-auth/authdns-update
@@ -38,6 +38,14 @@
3939 shift
4040 done
4141
 42+if ssh-add -l>/dev/null 2>&1
 43+then
 44+ echo "Found your ssh agent."
 45+else
 46+ echo "Can't contact your ssh agent. You must forward your ssh agent to use this script."
 47+ exit 2
 48+fi
 49+
4250 echo "Will skip slave(s) $SKIP."
4351
4452 # export the current templates from svn

Status & tagging log