CC-2758: Make airtime-install script Debian/Ubuntu compatible

-cosmetic changes
This commit is contained in:
martin 2011-11-01 15:21:09 -04:00
parent d2f4e55dd6
commit f2ef006385
17 changed files with 67 additions and 51 deletions

View file

@ -3,14 +3,14 @@ import sys
from subprocess import Popen, PIPE, STDOUT
def create_user(username):
print "Checking for user "+username
print "* Checking for user "+username
p = Popen('id '+username, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
output = p.stdout.read()
if (output[0:3] != "uid"):
# Make the pypo user
print "Creating user "+username
print " * Creating user "+username
os.system("adduser --system --quiet --group --shell /bin/bash "+username)
#set pypo password