Skip to content

Commit

Permalink
Merge pull request #1 from tvburger/develop
Browse files Browse the repository at this point in the history
Fixes add user and server
  • Loading branch information
tvburger committed Jun 6, 2018
2 parents 31d1b96 + 2457188 commit 4fe8909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/server/add
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function run {
-CAkey "$ca_key_file" \
-passin "pass:$PASSPHRASE_IN" \
-out "$server_dir/client.crt"
openssl rsa -in "$server_dir/client.key" -des3 -out "$server_dir/client.id_rsa" -nodes
openssl rsa -in "$server_dir/client.key" -des3 -out "$server_dir/client.id_rsa"
ssh-keygen -y -f "$server_dir"/client.id_rsa > "$server_dir"/client.id_rsa.pub

echo "Server key generated"
Expand Down
2 changes: 1 addition & 1 deletion commands/user/add
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function print_help {
}

function run {
if [ `argc` -eq 2 ]; then
if [ ! `argc` -eq 2 ]; then
invalid_arguments
fi

Expand Down

0 comments on commit 4fe8909

Please sign in to comment.