summaryrefslogtreecommitdiffstats
path: root/admportal/shell/stopssl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'admportal/shell/stopssl.sh')
-rwxr-xr-xadmportal/shell/stopssl.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/admportal/shell/stopssl.sh b/admportal/shell/stopssl.sh
new file mode 100755
index 00000000..a71de61e
--- /dev/null
+++ b/admportal/shell/stopssl.sh
@@ -0,0 +1,13 @@
+. /etc/attappl.env
+. ${PROJECT_HOME}/etc/default.env
+
+SSL_ENABLED=`python /opt/admportal/shell/getAdmPortalProp.py sslEnabled | sed -e 's|['\'']||g'`
+export SSL_ENABLED
+
+cd ..
+if [ "true" == "${SSL_ENABLED}" ]; then
+ pm2 stop admportal8443
+else
+ pm2 stop http_admportal
+fi
+pm2 kill