Skip to content
Snippets Groups Projects
Commit 63834802 authored by shirenn's avatar shirenn 🌊 Committed by shirenn
Browse files

checks if /etc/pve is mounted (thanks Mikachu and esum)

parent 2ebe049e
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ if __name__ == '__main__':
print('# | -> priv/shadow.cfg |')
print('# +--------------------+')
print(shadow_template.render(users=passwords))
else:
elif os.path.ismount('/etc/pve'):
with open(os.path.join(args.path, 'user.cfg'), 'w') as file:
file.write(user_template.render(users=users, groups=groups, acls=acls))
with open(os.path.join(args.path, 'priv/shadow.cfg'), 'w') as file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment