Disable updategraph after first time (#592)

This commit is contained in:
Taoyu Li 2017-05-11 12:37:14 -07:00 committed by GitHub
parent 6e45307a49
commit 7663da9510

View File

@ -68,6 +68,10 @@ while true; do
sleep 5 sleep 5
done 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 [ -n "$ACL_URL" ]; then
if [ -f /etc/sonic/acl.json ]; then if [ -f /etc/sonic/acl.json ]; then
echo "Renaming acl.json to acl.json.old" echo "Renaming acl.json to acl.json.old"