DocSpace-buildtools/install/deb/debian/product-proxy.preinst

11 lines
242 B
Bash

#!/bin/bash
set -e
# (DS v1.1.3) Removing old nginx configs to prevent conflicts before upgrading on OpenResty.
if [ -f /etc/nginx/conf.d/onlyoffice.conf ]; then
rm -rf /etc/nginx/conf.d/onlyoffice*
systemctl reload nginx
fi
exit 0