forked from ungleich-public/cdist
introduce Clear Linux OS to the __docker type
This commit is contained in:
parent
88bb561288
commit
382cdcaa33
1 changed files with 15 additions and 0 deletions
|
@ -44,6 +44,21 @@ case "$os" in
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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)
|
ubuntu|debian)
|
||||||
if [ "${state}" = "present" ]; then
|
if [ "${state}" = "present" ]; then
|
||||||
__package apt-transport-https
|
__package apt-transport-https
|
||||||
|
|
Loading…
Reference in a new issue