Also print stdout message to log

This commit is contained in:
William Wernert
2021-03-18 13:12:16 -04:00
parent 27ff823bc0
commit 360f0d4dfd
2 changed files with 2 additions and 2 deletions

View File

@@ -1942,7 +1942,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 && echo "Restarting Docker..." && systemctl restart docker
command -v docker &> /dev/null && echo "Restarting Docker..." | tee -a "$setup_log" && systemctl restart docker
[[ -f /root/.docker/config.json ]] && rm -f /root/.docker/config.json

View File

@@ -363,7 +363,7 @@ percentage=0
fi
} | progress '...'
echo "Checking if setup is running in the cloud..."
echo "Checking if setup is running in the cloud..." | tee -a "$setup_log"
detect_cloud
short_name=$(echo "$HOSTNAME" | awk -F. '{print $1}')