Commit c4189886 authored by David Johnson's avatar David Johnson

Ensure nginx default site is disabled.

parent f0b0d3bc
......@@ -26,9 +26,9 @@ if [ "$HOSTNAME" = "$CONTROLLER" ]; then
# Handle case where nginx won't start because the default site
# (which is enabled!) needs port 80, and apache might be listening
# there.
rm -f /etc/nginx/sites-available/default \
/etc/nginx/sites-enabled/default
if [ ! $? -eq 0 ]; then
rm -f /etc/nginx/sites-available/default \
/etc/nginx/sites-enabled/default
maybe_install_packages nginx
fi
echo "$ADMIN_PASS" | htpasswd -n -i admin > /etc/nginx/htpasswd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment