Commit 1d7bd1da authored by Charlie Jacomme's avatar Charlie Jacomme

silent if no error

parent a2b5a849
......@@ -28,7 +28,6 @@ def reconfigure(api_client):
error = False
for user in users:
print('creation du home de {}'.format(user['pseudo']))
home = '/home-adh/{}/{}'.format(user['pseudo'][0].lower(),user['pseudo'].lower())
uid = user['uid']
gid = user['gid']
......@@ -57,9 +56,10 @@ def reconfigure(api_client):
os.symlink(home, link)
if not ((os.path.exists(home+'/Mail') or os.path.islink(home + '/Mail')) and (os.path.exists(home+'/OwnCloud') or os.path.islink(home + '/OwnCloud')) and os.path.islink(link)):
print('creation du home de {}'.format(user['pseudo']))
print("error: {}".format(error))
error = True
print("error: {}".format(error))
return error
for arg in sys.argv:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment