From 7663da9510b645e745dd47c45d5062bfd0a40ea8 Mon Sep 17 00:00:00 2001 From: Taoyu Li Date: Thu, 11 May 2017 12:37:14 -0700 Subject: [PATCH] Disable updategraph after first time (#592) --- files/image_config/updategraph/updategraph | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/image_config/updategraph/updategraph b/files/image_config/updategraph/updategraph index 0d3b248bc4..a46a5f73a0 100755 --- a/files/image_config/updategraph/updategraph +++ b/files/image_config/updategraph/updategraph @@ -68,6 +68,10 @@ while true; do sleep 5 done +# Mark as disabled after graph is successfully downloaded +sed -i "/enabled=/d" /etc/sonic/updategraph.conf +echo "enabled=false" >> /etc/sonic/updategraph.conf + if [ -n "$ACL_URL" ]; then if [ -f /etc/sonic/acl.json ]; then echo "Renaming acl.json to acl.json.old"