-fixed issue with unix pypo user not being assigned to groups

-fixed issue with time being incorrect if server was in different timezone
This commit is contained in:
martin 2011-01-31 16:34:08 -05:00
parent 7751ad7ac7
commit 755c5a8469
4 changed files with 6 additions and 10 deletions

View file

@ -35,9 +35,6 @@ def create_user(username):
print "Creating user "+username
os.system("adduser --system --quiet --group --shell /bin/bash "+username)
#add pypo to audio group
os.system("adduser " + username + " audio")
#set pypo password
p = os.popen('/usr/bin/passwd pypo', 'w')
p.write('pypo\n')
@ -45,6 +42,8 @@ def create_user(username):
p.close()
else:
print "User already exists."
#add pypo to audio group
os.system("adduser " + username + " pulse-access 2>&1 1>/dev/null")
def copy_dir(src_dir, dest_dir):
if (os.path.exists(dest_dir)) and (dest_dir != "/"):