forked from ungleich-public/cdist
use add-apt-repository instead of add-apt-repository
In Ubuntu Bionic 18.04 and Focal 20.04, the command remove-apt-repository either does not exists or fail in a default installation with the error: ModuleNotFoundError: No module named 'softwareproperties' But add-apt-repository allow removal through the `-r` flag.
This commit is contained in:
parent
02c770830c
commit
d0ce59f167
|
@ -32,6 +32,6 @@ case "$state_should" in
|
||||||
echo "add-apt-repository -y '$name'"
|
echo "add-apt-repository -y '$name'"
|
||||||
;;
|
;;
|
||||||
absent)
|
absent)
|
||||||
echo "remove-apt-repository '$name'"
|
echo "add-apt-repository -r -y '$name'"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue