Don't recreate symlinks - closes #42

pull/1/head
Jason Kendall 2020-03-21 11:48:43 -04:00
parent a676d0b65f
commit 7e997fb3fd
1 changed files with 5 additions and 2 deletions

View File

@ -112,11 +112,14 @@ if [[ ! -f /var/www/MISP/PyMISP/pymisp/data/describeTypes.json ]]; then
ln -s /usr/local/lib/python3.7/dist-packages/pymisp/data/describeTypes.json /var/www/MISP/PyMISP/pymisp/data/describeTypes.json
fi
if [[ "$NOREDIR" == true ]]; then
if [[ ! -L "/etc/nginx/sites-enabled/misp80" && "$NOREDIR" == true ]]; then
echo "Configure NGINX | Disabling Port 80 Redirect"
ln -s /etc/nginx/sites-available/misp80-noredir /etc/nginx/sites-enabled/misp80
else
elif [[ ! -L "/etc/nginx/sites-enabled/misp80" ]]; then
echo "Configure NGINX | Enable Port 80 Redirect"
ln -s /etc/nginx/sites-available/misp80 /etc/nginx/sites-enabled/misp80
else
echo "Configure NGINX | Port 80 already configured"
fi
if [[ "$DISIPV6" == true ]]; then