Replace deprecated --force dpkg option

While watching @Half-Shot install his new Synapse dpkg popped out an error that `--force` was deprecated.

This was on Ubuntu 19.04. Not sure if the `--force-all` option is supported by older distributions that we support
This commit is contained in:
Andrew Morgan 2019-10-19 21:17:20 +02:00 committed by GitHub
parent 22a9f75097
commit f6ea4f5b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ EOF
for DIR in /var/lib/matrix-synapse /var/log/matrix-synapse /etc/matrix-synapse; do for DIR in /var/lib/matrix-synapse /var/log/matrix-synapse /etc/matrix-synapse; do
if ! dpkg-statoverride --list --quiet $DIR >/dev/null; then if ! dpkg-statoverride --list --quiet $DIR >/dev/null; then
dpkg-statoverride --force --quiet --update --add $USER nogroup 0755 $DIR dpkg-statoverride --force-all --quiet --update --add $USER nogroup 0755 $DIR
fi fi
done done