[damned-lies/oscp-testing] Take into account cronjobs as well



commit bc38e7de22422d69e702e13eae4b861cafa12aea
Author: Andrea Veri <averi redhat com>
Date:   Tue Jun 8 18:17:04 2021 +0200

    Take into account cronjobs as well

 entrypoint.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/entrypoint.sh b/entrypoint.sh
index 3c170f34..b0c54789 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -15,4 +15,8 @@ echo 'Generating static files'
 echo 'Compiling translations'
 /l10n/venv/bin/python manage.py compile-trans
 
-exec httpd -DFOREGROUND
+if [ $# -eq 0 ]; then
+  exec httpd -DFOREGROUND
+else
+  exec $*
+fi


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