Applied CentOS 7 issues.
This commit is contained in:
parent
6c11e54884
commit
5d5b1766d5
1 changed files with 53 additions and 34 deletions
|
@ -118,6 +118,18 @@ fi
|
|||
echo "# Starting Zammad"
|
||||
${INIT_CMD} start zammad
|
||||
|
||||
# on centos, allow nginx to connect to application server
|
||||
if [ -n "$(which setsebool)" ]; then
|
||||
setsebool httpd_can_network_connect on -P
|
||||
fi
|
||||
|
||||
# on centos, open port 80 and 443
|
||||
if [ -n "$(which firewall-cmd)" ]; then
|
||||
firewall-cmd --zone=public --add-port=80/tcp --permanent
|
||||
firewall-cmd --zone=public --add-port=443/tcp --permanent
|
||||
firewall-cmd --reload
|
||||
fi
|
||||
|
||||
# copy nginx config
|
||||
if [ -n "$(which nginx)" ]; then
|
||||
# debian / ubuntu
|
||||
|
@ -132,12 +144,19 @@ if [ -n "$(which nginx)" ]; then
|
|||
test -f ${NGINX_CONF} || cp ${ZAMMAD_DIR}/contrib/nginx/zammad.conf ${NGINX_CONF}
|
||||
fi
|
||||
|
||||
echo "# Restarting Nginx"
|
||||
echo "restarting Nginx"
|
||||
${INIT_CMD} restart nginx
|
||||
|
||||
echo "create Nginx bootstart"
|
||||
${INIT_CMD} enable nginx
|
||||
|
||||
echo -e "############################################################################################################"
|
||||
echo -e "\nAdd your FQDN to servername directive in ${NGINX_CONF} and restart nginx if you're not testing localy"
|
||||
echo -e "or open http://localhost in your browser to start using Zammad.\n"
|
||||
echo -e "############################################################################################################"
|
||||
else
|
||||
echo -e "############################################################################################################"
|
||||
echo -e "\nOpen http://localhost:3000 in your browser to start using Zammad.\n"
|
||||
echo -e "############################################################################################################"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue