debian/preinst: avoid failing when nginx is not installed
This commit is contained in:
parent
33f3ceda52
commit
742ea5dc1c
|
@ -7,7 +7,7 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install|upgrade)
|
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)
|
abort-upgrade)
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue