Update 'make_user_accounts.py'

master
murtaugh 4 years ago
parent c40d1ac8ec
commit 3c5d94fa74

@ -48,7 +48,7 @@ for username in usernames:
with open("jupyter_notebook_config.temp.py", "w") as f:
print (nbconfig.render(**userdata), file=f)
os.system(f"sudo mv jupyter_notebook_config.temp.py /home/{username}/.jupyter/jupyter_notebook_config.py")
os.system(f"sudo chown {username}:{username} /home/{username}/.jupyter/jupyter_notebook_config.py")
os.system(f"sudo chown -R {username}:{username} /home/{username}/.jupyter")
else:
print (nbconfig.render(**userdata))
print()

Loading…
Cancel
Save