#!/bin/sh
# Runs at uninstall time (as root). Removes the same-origin nginx location.
rm -f /usr/local/etc/nginx/conf.d/dsm.phoenix.conf
nginx -s reload 2>/dev/null || synosystemctl reload nginx 2>/dev/null || synoservicecfg --reload nginx 2>/dev/null || true
exit 0
