[damned-lies/oscp] Allow non-root httpd runs



commit c0b39d48b8123abe90772ebfb5a6c08e5479bfb9
Author: Andrea Veri <averi redhat com>
Date:   Wed Sep 11 19:15:38 2019 +0200

    Allow non-root httpd runs

 entrypoint.sh | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/entrypoint.sh b/entrypoint.sh
index a9e11b6d..47013b62 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -8,5 +8,9 @@ sed -i "s/\$SECRET_KEY/${SECRET_KEY}/" /l10n/damnedlies/damnedlies/local_setting
 sed -i "s/\$SENTRY_DSN/${SENTRY_DSN}/" /l10n/damnedlies/damnedlies/local_settings.py
 sed -i "s/\$GITLAB_TOKEN/${GITLAB_TOKEN}/" /l10n/damnedlies/damnedlies/local_settings.py
 
+echo 'Allowing non-root httpd runs'
+sed -i 's/Listen\ 80/Listen\ 8080/' /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
+sed -i 's/Listen\ 443/Listen\ 8443/' /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
+
 /l10n/venv/bin/python manage.py collectstatic
 scl enable rh-python36 httpd24 "httpd -DFOREGROUND" 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]