标签:shell use admin 替换 user 开头 sql host pwd
# sqlversion.php
sqlversion_file=${cur_dir}/web-admin/sql_version/sqlversion.php
sed -i "s#^\$db_host.*;#\$db_host=‘${DB_HOST}‘;#g" $sqlversion_file
sed -i "s#^\$db_user.*;#\$db_user=‘${DB_USER}‘;#g" $sqlversion_file
sed -i "s#^\$db_pwd.*;#\$db_pwd=‘${DB_PWD}‘;#g" $sqlversion_file
sed -i "s#^\$db_name.*;#\$db_name=‘${DB_NAME}‘;#g" $sqlversion_file
$db_host=‘‘;
$db_user=‘‘;
$db_pwd=‘‘;
$db_name=‘‘;
标签:shell use admin 替换 user 开头 sql host pwd
原文地址:https://www.cnblogs.com/jiqing9006/p/13086432.html