Generalize kong restart

This commit is contained in:
Ned Wright 2023-07-03 16:43:20 +00:00
parent 787fa7fd95
commit a9a9b4ca29

View File

@ -55,7 +55,7 @@ run_installation()
[ -f /usr/local/share/lua/5.1/kong/templates/nginx.lua ] && sed -i 's|http {|http {\ncp_worker_processes ${{nginx_worker_processes}};|g' /usr/local/share/lua/5.1/kong/templates/nginx.lua || echo [ -f /usr/local/share/lua/5.1/kong/templates/nginx.lua ] && sed -i 's|http {|http {\ncp_worker_processes ${{nginx_worker_processes}};|g' /usr/local/share/lua/5.1/kong/templates/nginx.lua || echo
command -v nginx > /dev/null && nginx -s reload command -v nginx > /dev/null && nginx -s reload
command -v kong > /dev/null && kong restart -c /etc/kong/kong.conf command -v kong > /dev/null && kong restart
cp_print "Installation completed successfully." $FORCE_STDOUT cp_print "Installation completed successfully." $FORCE_STDOUT
} }