Hide celery user

This commit is contained in:
Duncan Sommerville 2015-09-15 13:59:48 -04:00
parent 8c65ba8f66
commit dd09676f88
3 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ def postinst():
os.chmod('/var/log/airtime', 0775)
# Create the Celery user
call(['adduser', '--no-create-home', '--home', '/var/lib/celery', '--gecos', '', '--disabled-login', 'celery'])
call(['adduser', '--no-create-home', '--gecos', '', '--disabled-login', '--firstuid', '1', '--lastuid', '999', 'celery'])
# Add celery to the www-data group
call(['usermod', '-G', 'www-data', '-a', 'celery'])