1. 程式人生 > >寫入多個變量到配置文件【linux】

寫入多個變量到配置文件【linux】

deb spa pre cat dock etc level docke mail

#!/bin/bash
cat <<EOF >> /etc/ecs/ecs.config
ECS_CLUSTER=MyCluster
ECS_ENGINE_AUTH_TYPE=docker
ECS_ENGINE_AUTH_DATA={"https://index.docker.io/v1/":{"username":"my_name","password":"my_password","email":"[email protected]"}}
ECS_LOGLEVEL=debug
EOF

寫入多個變量到配置文件【linux】