-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The script uses su - $owner everywhere to run commands as the result of whoami.
This results in tty tickets if you don't have passwordless sudo.
Why not just run the commands instead?
For example,
Instead of:
have_host=$(su - $owner -c "ssh-keygen -F $keygen_name -f $file")
Why not just:
have_host=$(ssh-keygen -F $keygen_name -f $file)
Metadata
Metadata
Assignees
Labels
No labels