Browse Source

upgrade script improve

master
filesite 4 months ago
parent
commit
fa42ba06b9
  1. 7
      bin/upgrade.sh

7
bin/upgrade.sh

@ -87,7 +87,14 @@ echo ""
# upgrade nginx config # upgrade nginx config
if [ -d /etc/nginx/http.d/ ]; then
cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/http.d/machete.conf cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/http.d/machete.conf
fi
if [ -d /etc/nginx/conf.d/ ]; then
cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/conf.d/machete.conf
fi
/usr/sbin/nginx -s reload /usr/sbin/nginx -s reload
echo "Nginx config upgraded and reloaded." echo "Nginx config upgraded and reloaded."
echo "" echo ""

Loading…
Cancel
Save