aboutsummaryrefslogtreecommitdiff
path: root/share/keyringer/newkeys
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-16 14:23:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-16 14:23:42 -0300
commita490a1bf3e668674760cdda4e46f2e472fc3460c (patch)
tree4feb42b5478cff407d37824c6c68f55a121eed7a /share/keyringer/newkeys
parentae2c26a64065e48bc2f863d9f7648b7a49b072f7 (diff)
downloadkeyringer-a490a1bf3e668674760cdda4e46f2e472fc3460c.tar.gz
keyringer-a490a1bf3e668674760cdda4e46f2e472fc3460c.tar.bz2
Code cleanup
Diffstat (limited to 'share/keyringer/newkeys')
-rwxr-xr-xshare/keyringer/newkeys11
1 files changed, 6 insertions, 5 deletions
diff --git a/share/keyringer/newkeys b/share/keyringer/newkeys
index 95b052b..531cf42 100755
--- a/share/keyringer/newkeys
+++ b/share/keyringer/newkeys
@@ -3,12 +3,13 @@
# Create keys for new nodes.
#
-# Config
-ACTIONS="`dirname $0`"
-BASEDIR="$1"
+# Load functions
+LIB="`dirname $0`/../../lib/keyringer/functions"
+source $LIB
+keyringer_set_env $*
+
+# Aditional parameters
COMMAND="$2"
-BASENAME="`basename $0`"
-OPTIONS="$BASEDIR/config/options"
function newkeys_nodes {
# See http://www.mail-archive.com/puppet-users@googlegroups.com/msg01615.html