You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source ../.env
|
|
|
|
echo "user:{$USER}"
|
|
|
|
echo "password:{$PASSWORD}"
|
|
|
|
|
|
|
|
nameList=(dbMysqlUserName dbUserName dbUserName accessKeyID)
|
|
|
|
pwdList=(dbMysqlPassword dbPassword dbPassWord secretAccessKey)
|
|
|
|
|
|
|
|
for i in ${nameList[*]}; do
|
|
|
|
echo {$i}
|
|
|
|
sed -i 's/{$i}: [a-z]/{$i}: {$USER}/g' ../config/usualConfig.yaml
|
|
|
|
done
|
|
|
|
|
|
|
|
for i in ${pwdList[*]}; do
|
|
|
|
echo {$i}
|
|
|
|
sed -i 's/{$i}: [a-z]/{$i}: {$PASSWORD}/g' ../config/usualConfig.yaml
|
|
|
|
done
|