mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-26 04:46:55 +00:00
trivial: debian: only modify /etc/fwupd.conf in CI context
This satisfies piuparts not modifying the system automatically.
This commit is contained in:
parent
bae4b9948d
commit
614908d08b
@ -6,6 +6,10 @@ set -e
|
|||||||
#only enable on installation not upgrade
|
#only enable on installation not upgrade
|
||||||
if [ "$1" = configure ] && [ -z "$2" ]; then
|
if [ "$1" = configure ] && [ -z "$2" ]; then
|
||||||
if [ -f /etc/fwupd.conf ]; then
|
if [ -f /etc/fwupd.conf ]; then
|
||||||
sed "s,^EnableTestSuite=.*,EnableTestSuite=true," -i /etc/fwupd.conf
|
if [ "$CI" = "true" ]; then
|
||||||
|
sed "s,^EnableTestSuite=.*,EnableTestSuite=true," -i /etc/fwupd.conf
|
||||||
|
else
|
||||||
|
echo "To enable test suite, modify /etc/fwupd.conf"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -5,6 +5,10 @@ set -e
|
|||||||
|
|
||||||
if [ "$1" = remove -o "$1" = purge ]; then
|
if [ "$1" = remove -o "$1" = purge ]; then
|
||||||
if [ -f /etc/fwupd.conf ]; then
|
if [ -f /etc/fwupd.conf ]; then
|
||||||
sed "s,^EnableTestSuite=.*,EnableTestSuite=false," -i /etc/fwupd.conf
|
if [ "$CI" = "true" ]; then
|
||||||
|
sed "s,^EnableTestSuite=.*,EnableTestSuite=false," -i /etc/fwupd.conf
|
||||||
|
else
|
||||||
|
echo "To disable test suite, modify /etc/fwupd.conf"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user