more test and vagrant for nginx checks

This commit is contained in:
Olof hagsand 2020-11-25 19:48:42 +01:00
parent 4f5b0178cc
commit f69daf773e
5 changed files with 38 additions and 27 deletions

View file

@ -84,8 +84,6 @@ cat<<'EOF' > $dir/startnginx.sh
sudo sh -c ' echo 'nginx_enable="YES"' >> /etc/rc.conf'
fi
sudo /usr/local/etc/rc.d/nginx restart
elif systemctl > /dev/null 2>&1 ; then
sudo systemctl start nginx
else
sudo pkill nginx
nginxbin=$(sudo which nginx)