mail backups were getting in a loop, i think this fixes
[distro-setup] / disabled / docker
1
2 ### begin docker install ####
3 if isdeb; then
4 # https://store.docker.com/editions/community/docker-ce-server-debian?tab=description
5 pi software-properties-common apt-transport-https
6 curl -fsSL https://download.docker.com/linux/$(distro-name-compat)/gpg | sudo apt-key add -
7 url=https://download.docker.com/linux/$(distro-name-compat)
8 l="deb [arch=amd64] $url $codename_compat stable"
9
10 if ! grep -xFq "$l" /etc/apt/sources.list{,.d/*.list}; then
11 sudo add-apt-repository "$l"
12 p update
13 fi
14 # docker eats up a fair amount of cpu when doing nothing, so don't enable it unless
15 # we really need it.
16 pi-nostart docker-ce
17 # and docker is even more crap, it ignores that it shouldnt start
18 ser stop docker
19 ser disable docker
20 case $HOSTNAME in
21 li|lj) sgo docker ;;
22 esac
23 fi
24 ### end docker install ####