introduce Clear Linux OS to the __docker type

This commit is contained in:
romain-dartigues 2024-02-10 20:52:44 +01:00
parent 88bb561288
commit 382cdcaa33

View file

@ -44,6 +44,21 @@ case "$os" in
exit 1
fi
;;
clear-linux-os)
if [ "${state}" = present ]
then
if [ "$version" != latest ]
then
>&2 echo "Specifying Docker version is unsupported with \"$os\""
exit 1
fi
__package_swupd cloud-control
else
>&2 echo 'Warning: cowardly refusing to remove "cloud-control", disabling Dockerd instead'
__systemd_service docker --state stopped
__systemd_unit docker --enablement-state disabled
fi
;;
ubuntu|debian)
if [ "${state}" = "present" ]; then
__package apt-transport-https