Skip to content

Commit

Permalink
python: setup: fedora: Always setup passwordless doas in OrbStack
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Jan 4, 2025
1 parent 3c0bbe6 commit f08a31f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/setup/fedora.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ def setup_doas(username):
'permit nopass root\n')

# OrbStack sets up passwordless sudo, carry it over to doas
if Path('/etc/sudoers.d/orbstack').exists():
# If we created a user password, this file will not be set up
# but we still want this behavior, so check for /mnt/mac as well.
if Path('/etc/sudoers.d/orbstack').exists() or Path('/mnt/mac').is_dir():
conf_txt += ('\n'
'# passwordless doas for my user\n'
f"permit nopass {username}\n")
Expand Down

0 comments on commit f08a31f

Please sign in to comment.