Enable viewer even if there is no nginx app config
@@ -109,7 +109,6 @@ server {
}
"
-if [ -e /etc/nginx/sites-enabled/appscale-${APP_ID}.conf ]; then
echo "$CONFIG" > /etc/nginx/sites-enabled/appscale-${APP_ID}_datastore_viewer.conf
nginx -t
service nginx reload
@@ -120,6 +119,3 @@ iptables -A INPUT -p tcp --dport $VIEWER_PORT -j ACCEPT # Enable datastore vie
if [ -n "$TRUSTED_IP" ]; then
echo "Allowed IP: $TRUSTED_IP."
fi
-else
- echo "Cannot find configuration for ${APP_ID}."
-fi
