[fix] Show message in terminal when restarting Docker to avoid confusion

This commit is contained in:
William Wernert
2021-03-17 20:17:23 -04:00
parent 9a2b5fa301
commit 6e3d951b01
2 changed files with 3 additions and 4 deletions

View File

@@ -1938,7 +1938,7 @@ reset_proxy() {
[[ -f /etc/systemd/system/docker.service.d/http-proxy.conf ]] && rm -f /etc/systemd/system/docker.service.d/http-proxy.conf
systemctl daemon-reload
command -v docker &> /dev/null && systemctl restart docker
command -v docker &> /dev/null && echo "Restarting Docker..." && systemctl restart docker
[[ -f /root/.docker/config.json ]] && rm -f /root/.docker/config.json