[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 EOF
# docker accelerator # docker accelerator
if [ -d /etc/docker ]; then$ if [ -d /etc/docker ]; then
dj='{}'$ dj='{}'
[ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json)$ [ -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$ echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json
systemctl restart docker$ systemctl restart docker
fi$ fi