From afa3c0419b23b30c0b7dd242a732cb603e20c5de Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Thu, 5 Jan 2023 15:44:23 +0100 Subject: [PATCH] Ajouter 'api-rest/start-apache' --- api-rest/start-apache | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 api-rest/start-apache diff --git a/api-rest/start-apache b/api-rest/start-apache new file mode 100644 index 0000000..f68e5d6 --- /dev/null +++ b/api-rest/start-apache @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +sed -i "s/Listen 80/Listen ${PORT:-80}/g" /etc/apache2/ports.conf +sed -i "s/:80/:${PORT:-80}/g" /etc/apache2/sites-enabled/* +apache2-foreground \ No newline at end of file