diff options
Diffstat (limited to 'rpkid/rpki/gui/scripts/adduser.py')
-rw-r--r-- | rpkid/rpki/gui/scripts/adduser.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rpkid/rpki/gui/scripts/adduser.py b/rpkid/rpki/gui/scripts/adduser.py index 8b475c0c..ae36c0db 100644 --- a/rpkid/rpki/gui/scripts/adduser.py +++ b/rpkid/rpki/gui/scripts/adduser.py @@ -27,16 +27,14 @@ from django.contrib.auth.models import User from django.conf import settings from rpki.gui.app.models import Conf -# The username that apache runs as. This is required so that we can chown -# the csv files that the portal-gui needs to write. -WEB_USER='@WEBUSER@' - import os import sys import getpass import pwd -web_uid = pwd.getpwnam(WEB_USER)[2] +# The username that apache runs as. This is required so that we can chown +# the csv files that the portal-gui needs to write. +web_uid = pwd.getpwnam(settings.WEB_USER)[2] if __name__ == '__main__': if len(sys.argv) < 3: |