From db0522c9538e5f37da6b1577efb9dad82204deed Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Mon, 28 Nov 2016 12:00:11 +0800 Subject: automated: linux: lamp: stop nginx to avoid port conflict When nginx is running, apache startup will fail as they use the same port. Change-Id: I36322ed587614b570880e27eadc67d592a683abc Signed-off-by: Chase Qi --- automated/linux/lamp/lamp.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'automated/linux') diff --git a/automated/linux/lamp/lamp.sh b/automated/linux/lamp/lamp.sh index fc995c0..b7704bc 100755 --- a/automated/linux/lamp/lamp.sh +++ b/automated/linux/lamp/lamp.sh @@ -28,6 +28,9 @@ mkdir -p "${OUTPUT}" if [ "${SKIP_INSTALL}" = "True" ] || [ "${SKIP_INSTALL}" = "true" ]; then warn_msg "LAMP package installation skipped" else + # Stop nginx server in case it is installed and running. + systemctl stop nginx > /dev/null 2>&1 || true + dist_name # shellcheck disable=SC2154 case "${dist}" in -- cgit v1.2.3