Skip to content

Commit 4cfe596

Browse files
committed
Disable nginx
1 parent 893292b commit 4cfe596

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

unit6_fix_sp24.sh

100644100755
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ else
8080
echo -e "${green}[APACHE2]${none} Apache2 is already disabled."
8181
fi
8282

83+
#### Check if nginx is running
84+
NGINX_ACTIVE=$(systemctl is-active nginx)
85+
if [[ "$NGINX_ACTIVE" == "active" ]]; then
86+
echo -e "${yellow}[NGINX]${none} Stopping NGINX"
87+
sudo service nginx stop
88+
else
89+
echo -e "${green}[NGINX]${none} Nginx is already stopped."
90+
fi
91+
8392
#### CATALYST LOCAL INSTALL: CATALYST
8493
CATALYST_INSTALLED=$(docker compose ls -q --filter name=catalyst-setup-sp24-main)
8594
if [ -n "$CATALYST_INSTALLED" ]; then

0 commit comments

Comments
 (0)