prod install: Add the CentOS version of SUPERVISOR_CONF_DIR.

This commit is contained in:
rht 2020-01-09 07:30:40 -05:00 committed by Tim Abbott
parent a3a662c7d2
commit c2dcaf48d8
1 changed files with 9 additions and 1 deletions

View File

@ -309,10 +309,18 @@ esac
"$ZULIP_PATH"/scripts/zulip-puppet-apply -f "$ZULIP_PATH"/scripts/zulip-puppet-apply -f
case " $os_id $os_id_like " in
*' debian '*)
SUPERVISOR_CONF_DIR="/etc/supervisor/conf.d"
;;
*' rhel '*)
SUPERVISOR_CONF_DIR="/etc/supervisord.d/conf.d"
;;
esac
# Detect which features were selected for the below # Detect which features were selected for the below
set +e set +e
[ -e "/etc/init.d/nginx" ]; has_nginx=$? [ -e "/etc/init.d/nginx" ]; has_nginx=$?
[ -e "/etc/supervisor/conf.d/zulip.conf" ]; has_appserver=$? [ -e "$SUPERVISOR_CONF_DIR/zulip.conf" ]; has_appserver=$?
[ -e "/etc/cron.d/rabbitmq-numconsumers" ]; has_rabbit=$? [ -e "/etc/cron.d/rabbitmq-numconsumers" ]; has_rabbit=$?
[ -e "/etc/init.d/postgresql" ]; has_postgres=$? [ -e "/etc/init.d/postgresql" ]; has_postgres=$?
set -e set -e