fwupd/contrib/debian/fwupd-tests.postinst
Richard Hughes 85226fd9d1 Remove potentially problematic language
Red Hat wants to drive an initiative in correcting problematic and potentially
divisive language in open source projects. These naming conventions and
descriptive phrases are hurtful and offensive to many of our colleagues across
the open source universe.

See https://www.redhat.com/en/blog/making-open-source-more-inclusive-eradicating-problematic-language
2020-06-30 17:31:17 +01:00

24 lines
594 B
Bash

#!/bin/sh
set -e
#DEBHELPER#
#only enable on installation not upgrade
if [ "$1" = configure ] && [ -z "$2" ]; then
if [ -f /etc/fwupd/daemon.conf ]; then
if [ "$CI" = "true" ]; then
sed "s,^DisabledPlugins=test;invalid,DisabledPlugins=," -i /etc/fwupd/daemon.conf
else
echo "To enable test suite, modify /etc/fwupd/daemon.conf"
fi
fi
if [ -f /etc/fwupd/remotes.d/fwupd-tests.conf ]; then
if [ "$CI" = "true" ]; then
sed "s,^Enabled=false,Enabled=true," -i /etc/fwupd/remotes.d/fwupd-tests.conf
else
echo "To enable test suite, enable fwupd-tests remote"
fi
fi
fi