Compare commits

...

2 Commits

Author SHA1 Message Date
romain-dartigues c98a63451e 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.
2021-12-24 15:44:28 +01:00
romain-dartigues 9ef0b9bfd3 force add-apt-repository to act in non-interactive mode 2021-12-24 15:44:28 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ fi
case "$state_should" in
present)
echo "add-apt-repository '$name'"
echo "add-apt-repository -y '$name'"
;;
absent)
echo "remove-apt-repository '$name'"
echo "add-apt-repository -r -y '$name'"
;;
esac