debian/preinst: avoid failing when nginx is not installed

This commit is contained in:
Christophe Siraut 2020-05-05 07:03:49 +02:00
parent 33f3ceda52
commit 742ea5dc1c
1 changed files with 1 additions and 1 deletions

2
debian/preinst vendored
View File

@ -7,7 +7,7 @@ set -e
case "$1" in
install|upgrade)
find /etc/nginx/conf.d -name client-max-body-size-10M.conf -delete
test -f /etc/nginx/conf.d/client-max-body-size-10M.conf && rm /etc/nginx/conf.d/client-max-body-size-10M.conf
;;
abort-upgrade)
;;