[misc] remove cr

This commit is contained in:
Klesh Wong 2020-08-05 15:48:55 +08:00
parent dbb0487c73
commit 71d845ff3a

View File

@ -23,9 +23,9 @@ trusted-host = pypi.doubanio.com
EOF
# docker accelerator
if [ -d /etc/docker ]; then$
dj='{}'$
[ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json)$
echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json$
systemctl restart docker$
fi$
if [ -d /etc/docker ]; then
dj='{}'
[ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json)
echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json
systemctl restart docker
fi