Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/cyclecloud_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,10 @@ def main():
dest="acceptTerms",
action="store_true",
help="Accept Cyclecloud terms and do a silent install")
parser.add_argument("--asRoot",
dest="asRoot",
action="store_true",
help="use asRoot if running as root user to create user credentials for cyclecloud account.")

parser.add_argument("--useLetsEncrypt",
dest="useLetsEncrypt",
Expand Down Expand Up @@ -601,7 +605,8 @@ def main():
letsEncrypt(args.hostname, vm_metadata["compute"]["location"])

# Create user requires root privileges
# create_user_credential(args.username, args.publickey)
if args.asRoot:
create_user_credential(args.username, args.publickey)

clean_up()

Expand Down