summaryrefslogtreecommitdiff
path: root/automated/linux
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2016-11-28 12:00:11 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-11-28 10:30:10 +0000
commitdb0522c9538e5f37da6b1577efb9dad82204deed (patch)
tree1d5b9fcb7516026a82995cd9a5019bbd0d85279b /automated/linux
parentcc87cceca2ca57facbcb8c6d66dcc5a71d90ef8e (diff)
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 <chase.qi@linaro.org>
Diffstat (limited to 'automated/linux')
-rwxr-xr-xautomated/linux/lamp/lamp.sh3
1 files changed, 3 insertions, 0 deletions
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