Skip to content

Commit

Permalink
added the flag -p to provide password directly
Browse files Browse the repository at this point in the history
  • Loading branch information
imanp committed Aug 11, 2015
1 parent 1a8310d commit 1751f2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpc-server
Expand Up @@ -167,8 +167,9 @@ try:
print "cannot use -host in combination with -servername "
sys.exit(1)
hostConfDir = True
elif arg == '-stdin':
rootpass = raw_input("Please enter password for the root copernicus account:")
elif arg == '-p':
rootpass = args[i + 1]
i += 1
elif arg == '-servername':
if(hostConfDir):
print "cannot use -servername in combination with -host"
Expand Down

0 comments on commit 1751f2c

Please sign in to comment.