#!/bin/bash
#/*/---------------------------------------------------------/*/
#/*/ Craydent LLC deploy-v1.2.0                              /*/
#/*/ Copyright 2011 (http://craydent.com/about)              /*/
#/*/ Dual licensed under the MIT or GPL Version 2 licenses.  /*/
#/*/ (http://craydent.com/license)                           /*/
#/*/---------------------------------------------------------/*/
#/*/---------------------------------------------------------/*/

# $1=>project name
# $2=>email address

if [ -z "$1" ]; then
    echo "You must provide a name";
    exit 1;
fi
if [ -z "$2" ]; then
    echo "You must provide an email address";
    exit 1;
fi

ssh-keygen -t rsa -C "$2" -N '' -f /var/craydent/key/$1;

exit 0;