Merge pull request #984 from dgageot/gcp-fixes

Fixes fo GCP
This commit is contained in:
Justin Cormack 2017-01-10 20:11:46 +00:00 committed by GitHub
commit 0135592a41
3 changed files with 6 additions and 5 deletions

View File

@ -56,6 +56,9 @@ start() {
"aws")
sed -i -e "s/^server [^ ]\+/server 0.amazon.pool.ntp.org/g" /etc/chrony/chrony.conf
;;
"gcp")
sed -i -e "s/^server [^ ]\+/server metadata.google.internal/g" /etc/chrony/chrony.conf
;;
"azure")
# TODO needs an ntp solution
;;

View File

@ -18,6 +18,9 @@ start()
"azure")
DIAGNOSTICS_SERVER_FLAGS="-http"
;;
"gcp")
DIAGNOSTICS_SERVER_FLAGS="-http"
;;
"windows")
DIAGNOSTICS_SERVER_FLAGS="-hvsock"
;;

View File

@ -27,8 +27,3 @@ start()
eend 0
}
stop()
{
[ "$(mobyplatform)" != "gcp" ] && exit 0
}