-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:
parent
7751ad7ac7
commit
755c5a8469
4 changed files with 6 additions and 10 deletions
|
@ -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 != "/"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue