Commit 853e8cce authored by King Ho's avatar King Ho

Update importcustomattributes.sh

parent f2a2843e
#!/bin/bash
curl "http://metadata.google.internal/computeMetadata/v1/instance/attributes/" -H "Metadata-Flavor: Google" > /var/metadatalist.txt
cat /var/metadatalist.txt | while read p; do echo export "$p"=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/attributes/$p" -H "Metadata-Flavor: Google") >> /etc/profile; done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment