From a33e58a6f7308916ae6801e35e06d37f7736c868 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 12 May 2017 22:52:20 +0200 Subject: [SSPS] lighttpd-ssl: Only generate dhparam if not already running --- satellit_installer/static_files/lighttpd-auto-ssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'satellit_installer') diff --git a/satellit_installer/static_files/lighttpd-auto-ssl.sh b/satellit_installer/static_files/lighttpd-auto-ssl.sh index 32bbee1..9365a33 100755 --- a/satellit_installer/static_files/lighttpd-auto-ssl.sh +++ b/satellit_installer/static_files/lighttpd-auto-ssl.sh @@ -5,7 +5,7 @@ declare -rg CHAIN="/etc/lighttpd/chain.pem" declare -rg DHPARAM="/etc/lighttpd/dhparam.pem" declare -rg REDIR_FLAG="/etc/lighttpd/redirect.flag" -if ! [ -s "$DHPARAM" ]; then +if ! [ -s "$DHPARAM" ] && ! ps aux | grep 'openssl dhparam' | grep -q -v grep; then openssl dhparam -out "$DHPARAM" 2048 >/dev/null 2>&1 fi -- cgit v1.2.3-55-g7522