Skip to content

Commit

Permalink
Do more setup as non-root. refs: #52
Browse files Browse the repository at this point in the history
  • Loading branch information
spanezz committed Aug 14, 2022
1 parent 2eff6cd commit 654556d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions moncic/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ def __init__(self, args):
else:
config = MoncicConfig.load()

if self.args.imagedir:
config.imagedir = self.args.imagedir
if self.args.imagedir:
config.imagedir = self.args.imagedir

# Instantiate Moncic
self.moncic = Moncic(config=config, privs=privs)
# Instantiate Moncic
self.moncic = Moncic(config=config, privs=privs)

# Do the rest as root
self.moncic.privs.regain()
Expand Down

0 comments on commit 654556d

Please sign in to comment.