1、/build/c_files/config/init/config0.sh,替换环境变量的 Shell 脚本
#!/bin/bash sed -i "s@PCS_API_CFG_DB_HOST@$PCS_API_CFG_DB_HOST@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_HOST@$PCS_API_CFG_DB_HOST@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_NAME@$PCS_API_CFG_DB_NAME@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_NAME@$PCS_API_CFG_DB_NAME@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_USERNAME@$PCS_API_CFG_DB_USERNAME@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_USERNAME@$PCS_API_CFG_DB_USERNAME@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_PASSWORD@$PCS_API_CFG_DB_PASSWORD@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_PASSWORD@$PCS_API_CFG_DB_PASSWORD@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_TABLE_PREFIX@$PCS_API_CFG_DB_TABLE_PREFIX@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_TABLE_PREFIX@$PCS_API_CFG_DB_TABLE_PREFIX@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_CHARSET@$PCS_API_CFG_DB_CHARSET@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_DB_CHARSET@$PCS_API_CFG_DB_CHARSET@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_TEST_DB_HOST@$PCS_API_CFG_TEST_DB_HOST@g" /sobey/www/pcs-api/environments/dev/common/config/test-local.php; sed -i "s@PCS_API_CFG_TEST_DB_NAME@$PCS_API_CFG_TEST_DB_NAME@g" /sobey/www/pcs-api/environments/dev/common/config/test-local.php; sed -i "s@PCS_API_CFG_TEST_DB_USERNAME@$PCS_API_CFG_TEST_DB_USERNAME@g" /sobey/www/pcs-api/environments/dev/common/config/test-local.php; sed -i "s@PCS_API_CFG_TEST_DB_PASSWORD@$PCS_API_CFG_TEST_DB_PASSWORD@g" /sobey/www/pcs-api/environments/dev/common/config/test-local.php; sed -i "s@PCS_API_CFG_TEST_DB_CHARSET@$PCS_API_CFG_TEST_DB_CHARSET@g" /sobey/www/pcs-api/environments/dev/common/config/test-local.php; sed -i "s@PCS_API_CFG_REDIS_HOSTNAME@$PCS_API_CFG_REDIS_HOSTNAME@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_HOSTNAME@$PCS_API_CFG_REDIS_HOSTNAME@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_PORT@$PCS_API_CFG_REDIS_PORT@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_PORT@$PCS_API_CFG_REDIS_PORT@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s#PCS_API_CFG_REDIS_PASSWORD#$PCS_API_CFG_REDIS_PASSWORD#g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s#PCS_API_CFG_REDIS_PASSWORD#$PCS_API_CFG_REDIS_PASSWORD#g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_DATABASE@$PCS_API_CFG_REDIS_DATABASE@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_DATABASE@$PCS_API_CFG_REDIS_DATABASE@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_CACHE_KEY_PREFIX@$PCS_API_CFG_REDIS_CACHE_KEY_PREFIX@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_REDIS_CACHE_KEY_PREFIX@$PCS_API_CFG_REDIS_CACHE_KEY_PREFIX@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_HOST_INFO@$PCS_API_CFG_CMC_CONSOLE_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_HOST_INFO@$PCS_API_CFG_CMC_CONSOLE_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_HOST_INFO@$PCS_API_CFG_CMC_CONSOLE_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_HOST_INFO@$PCS_API_CFG_CMC_CONSOLE_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_BASE_URL@$PCS_API_CFG_CMC_CONSOLE_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_BASE_URL@$PCS_API_CFG_CMC_CONSOLE_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_BASE_URL@$PCS_API_CFG_CMC_CONSOLE_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_BASE_URL@$PCS_API_CFG_CMC_CONSOLE_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_APP_KEY@$PCS_API_CFG_CMC_CONSOLE_APP_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_APP_KEY@$PCS_API_CFG_CMC_CONSOLE_APP_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_APP_SECRET@$PCS_API_CFG_CMC_CONSOLE_APP_SECRET@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_APP_SECRET@$PCS_API_CFG_CMC_CONSOLE_APP_SECRET@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY@$PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY@$PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_HOST_INFO@$PCS_API_CFG_CMC_API_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_API_HOST_INFO@$PCS_API_CFG_CMC_API_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_API_HOST_INFO@$PCS_API_CFG_CMC_API_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_HOST_INFO@$PCS_API_CFG_CMC_API_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_BASE_URL@$PCS_API_CFG_CMC_API_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_API_BASE_URL@$PCS_API_CFG_CMC_API_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_CMC_API_BASE_URL@$PCS_API_CFG_CMC_API_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_BASE_URL@$PCS_API_CFG_CMC_API_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_APP_KEY@$PCS_API_CFG_CMC_API_APP_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_APP_KEY@$PCS_API_CFG_CMC_API_APP_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_APP_SECRET@$PCS_API_CFG_CMC_API_APP_SECRET@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_APP_SECRET@$PCS_API_CFG_CMC_API_APP_SECRET@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_SERVICE_KEY@$PCS_API_CFG_CMC_API_SERVICE_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_SERVICE_KEY@$PCS_API_CFG_CMC_API_SERVICE_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_GROUP_ID@$PCS_API_CFG_CMC_API_USER_GROUP_ID@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_GROUP_ID@$PCS_API_CFG_CMC_API_USER_GROUP_ID@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_SOURCE_ID@$PCS_API_CFG_CMC_API_USER_SOURCE_ID@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_SOURCE_ID@$PCS_API_CFG_CMC_API_USER_SOURCE_ID@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_SOURCE_KEY@$PCS_API_CFG_CMC_API_USER_SOURCE_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_SOURCE_KEY@$PCS_API_CFG_CMC_API_USER_SOURCE_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_LOGIN_ID@$PCS_API_CFG_CMC_API_USER_LOGIN_ID@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_LOGIN_ID@$PCS_API_CFG_CMC_API_USER_LOGIN_ID@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_PWD@$PCS_API_CFG_CMC_API_USER_PWD@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CMC_API_USER_PWD@$PCS_API_CFG_CMC_API_USER_PWD@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_SCMS_HOST_INFO@$PCS_API_CFG_SCMS_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_SCMS_HOST_INFO@$PCS_API_CFG_SCMS_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_SCMS_BASE_URL@$PCS_API_CFG_SCMS_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_SCMS_BASE_URL@$PCS_API_CFG_SCMS_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_HOST_INFO@$PCS_API_CFG_YQDSJ_API_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_HOST_INFO@$PCS_API_CFG_YQDSJ_API_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_BASE_URL@$PCS_API_CFG_YQDSJ_API_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_BASE_URL@$PCS_API_CFG_YQDSJ_API_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_SCMS_EDITOR_HOST_INFO@$PCS_API_CFG_SCMS_EDITOR_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_SCMS_EDITOR_HOST_INFO@$PCS_API_CFG_SCMS_EDITOR_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_SCMS_EDITOR_BASE_URL@$PCS_API_CFG_SCMS_EDITOR_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_SCMS_EDITOR_BASE_URL@$PCS_API_CFG_SCMS_EDITOR_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE@$PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE@$PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_HOST_INFO@$PCS_API_CFG_JOVE_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_HOST_INFO@$PCS_API_CFG_JOVE_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_BASE_URL@$PCS_API_CFG_JOVE_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_BASE_URL@$PCS_API_CFG_JOVE_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_PARAMS_URL@$PCS_API_CFG_JOVE_PARAMS_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_PARAMS_URL@$PCS_API_CFG_JOVE_PARAMS_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_PARAMS_SOURCE@$PCS_API_CFG_JOVE_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_JOVE_PARAMS_SOURCE@$PCS_API_CFG_JOVE_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_HOST_INFO@$PCS_API_CFG_YQDSJ_API_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_HOST_INFO@$PCS_API_CFG_YQDSJ_API_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_BASE_URL@$PCS_API_CFG_YQDSJ_API_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_BASE_URL@$PCS_API_CFG_YQDSJ_API_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_SERVICE_KEY@$PCS_API_CFG_YQDSJ_API_SERVICE_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_YQDSJ_API_SERVICE_KEY@$PCS_API_CFG_YQDSJ_API_SERVICE_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_NOVA_HOST_INFO@$PCS_API_CFG_NOVA_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_NOVA_HOST_INFO@$PCS_API_CFG_NOVA_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_NOVA_BASE_URL@$PCS_API_CFG_NOVA_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_NOVA_BASE_URL@$PCS_API_CFG_NOVA_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_NOVA_PARAMS_SOURCE@$PCS_API_CFG_NOVA_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_NOVA_PARAMS_SOURCE@$PCS_API_CFG_NOVA_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_NGINX_SERVER_NAME@$PCS_API_CFG_NGINX_SERVER_NAME@g" /etc/nginx/conf.d/pcs-api.conf; sed -i "s@PCS_API_CFG_IDA_HOST_INFO@$PCS_API_CFG_IDA_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_IDA_HOST_INFO@$PCS_API_CFG_IDA_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_IDA_HOST_INFO@$PCS_API_CFG_IDA_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_HOST_INFO@$PCS_API_CFG_IDA_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_BASE_URL@$PCS_API_CFG_IDA_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/main-local.php; sed -i "s@PCS_API_CFG_IDA_BASE_URL@$PCS_API_CFG_IDA_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/main-local.php; sed -i "s@PCS_API_CFG_IDA_BASE_URL@$PCS_API_CFG_IDA_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_BASE_URL@$PCS_API_CFG_IDA_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_APP_KEY@$PCS_API_CFG_IDA_APP_KEY@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_APP_KEY@$PCS_API_CFG_IDA_APP_KEY@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_APP_SECRET@$PCS_API_CFG_IDA_APP_SECRET@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_IDA_APP_SECRET@$PCS_API_CFG_IDA_APP_SECRET@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_HOST_INFO@$PCS_API_CFG_CPU_HOST_INFO@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_HOST_INFO@$PCS_API_CFG_CPU_HOST_INFO@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_BASE_URL@$PCS_API_CFG_CPU_BASE_URL@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_BASE_URL@$PCS_API_CFG_CPU_BASE_URL@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_PARAMS_XCONTENT@$PCS_API_CFG_CPU_PARAMS_XCONTENT@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_PARAMS_XCONTENT@$PCS_API_CFG_CPU_PARAMS_XCONTENT@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_PARAMS_PCS@$PCS_API_CFG_CPU_PARAMS_PCS@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_PARAMS_PCS@$PCS_API_CFG_CPU_PARAMS_PCS@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_PARAMS_SOURCE@$PCS_API_CFG_CPU_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/dev/common/config/params-local.php; sed -i "s@PCS_API_CFG_CPU_PARAMS_SOURCE@$PCS_API_CFG_CPU_PARAMS_SOURCE@g" /sobey/www/pcs-api/environments/prod/common/config/params-local.php; echo "there are 122 params,replay finish....";
2、当升级时,缺少 PCS_API_CFG_CPU_PARAMS_SOURCE=chinamcloud_pcs // CP上传的参数的系统来源标识,则启动容器失败,如图1
3、编辑 /build/c_files/config/init/config0.sh,替换环境变量的 Shell 脚本,当某环境变量存在时,才执行替换操作,且添加操作日志
#!/bin/bash # 记录日志 DIR=/config/init # 配置文件 DEV_COMMON_CONFIG_MAIN_LOCAL_PATH=/sobey/www/pcs-api/environments/dev/common/config/main-local.php PROD_COMMON_CONFIG_MAIN_LOCAL_PATH=/sobey/www/pcs-api/environments/prod/common/config/main-local.php DEV_COMMON_CONFIG_TEST_LOCAL_PATH=/sobey/www/pcs-api/environments/dev/common/config/test-local.php DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH=/sobey/www/pcs-api/environments/dev/common/config/params-local.php PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH=/sobey/www/pcs-api/environments/prod/common/config/params-local.php NGINX_PCS_API_PATH=/etc/nginx/conf.d/pcs-api.conf function DEV_COMMON_CONFIG_MAIN_LOCAL_PATH_exsit() { env | grep "PCS_API_CFG_DB_HOST" || export PCS_API_CFG_DB_HOST="PCS_API_CFG_DB_HOST" sed -i "s#PCS_API_CFG_DB_HOST#$PCS_API_CFG_DB_HOST#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_HOST replace $PCS_API_CFG_DB_HOST -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_HOST replace $PCS_API_CFG_DB_HOST -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_NAME" || export PCS_API_CFG_DB_NAME="PCS_API_CFG_DB_NAME" sed -i "s#PCS_API_CFG_DB_NAME#$PCS_API_CFG_DB_NAME#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_NAME replace $PCS_API_CFG_DB_NAME -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_NAME replace $PCS_API_CFG_DB_NAME -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_USERNAME" || export PCS_API_CFG_DB_USERNAME="PCS_API_CFG_DB_USERNAME" sed -i "s#PCS_API_CFG_DB_USERNAME#$PCS_API_CFG_DB_USERNAME#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_USERNAME replace $PCS_API_CFG_DB_USERNAME -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_USERNAME replace $PCS_API_CFG_DB_USERNAME -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_PASSWORD" || export PCS_API_CFG_DB_PASSWORD="PCS_API_CFG_DB_PASSWORD" sed -i "s#PCS_API_CFG_DB_PASSWORD#$PCS_API_CFG_DB_PASSWORD#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_PASSWORD replace $PCS_API_CFG_DB_PASSWORD -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_PASSWORD replace $PCS_API_CFG_DB_PASSWORD -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_TABLE_PREFIX" || export PCS_API_CFG_DB_TABLE_PREFIX="PCS_API_CFG_DB_TABLE_PREFIX" sed -i "s#PCS_API_CFG_DB_TABLE_PREFIX#$PCS_API_CFG_DB_TABLE_PREFIX#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_TABLE_PREFIX replace $PCS_API_CFG_DB_TABLE_PREFIX -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_TABLE_PREFIX replace $PCS_API_CFG_DB_TABLE_PREFIX -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_CHARSET" || export PCS_API_CFG_DB_CHARSET="PCS_API_CFG_DB_CHARSET" sed -i "s#PCS_API_CFG_DB_CHARSET#$PCS_API_CFG_DB_CHARSET#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_CHARSET replace $PCS_API_CFG_DB_CHARSET -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_CHARSET replace $PCS_API_CFG_DB_CHARSET -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_HOSTNAME" || export PCS_API_CFG_REDIS_HOSTNAME="PCS_API_CFG_REDIS_HOSTNAME" sed -i "s#PCS_API_CFG_REDIS_HOSTNAME#$PCS_API_CFG_REDIS_HOSTNAME#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_HOSTNAME replace $PCS_API_CFG_REDIS_HOSTNAME -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_HOSTNAME replace $PCS_API_CFG_REDIS_HOSTNAME -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_PORT" || export PCS_API_CFG_REDIS_PORT="PCS_API_CFG_REDIS_PORT" sed -i "s#PCS_API_CFG_REDIS_PORT#$PCS_API_CFG_REDIS_PORT#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_PORT replace $PCS_API_CFG_REDIS_PORT -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_PORT replace $PCS_API_CFG_REDIS_PORT -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_PASSWORD" || export PCS_API_CFG_REDIS_PASSWORD="PCS_API_CFG_REDIS_PASSWORD" sed -i "s#PCS_API_CFG_REDIS_PASSWORD#$PCS_API_CFG_REDIS_PASSWORD#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_PASSWORD replace $PCS_API_CFG_REDIS_PASSWORD -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_PASSWORD replace $PCS_API_CFG_REDIS_PASSWORD -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_DATABASE" || export PCS_API_CFG_REDIS_DATABASE="PCS_API_CFG_REDIS_DATABASE" sed -i "s#PCS_API_CFG_REDIS_DATABASE#$PCS_API_CFG_REDIS_DATABASE#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_DATABASE replace $PCS_API_CFG_REDIS_DATABASE -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_DATABASE replace $PCS_API_CFG_REDIS_DATABASE -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_CACHE_KEY_PREFIX" || export PCS_API_CFG_REDIS_CACHE_KEY_PREFIX="PCS_API_CFG_REDIS_CACHE_KEY_PREFIX" sed -i "s#PCS_API_CFG_REDIS_CACHE_KEY_PREFIX#$PCS_API_CFG_REDIS_CACHE_KEY_PREFIX#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_CACHE_KEY_PREFIX replace $PCS_API_CFG_REDIS_CACHE_KEY_PREFIX -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_CACHE_KEY_PREFIX replace $PCS_API_CFG_REDIS_CACHE_KEY_PREFIX -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_HOST_INFO" || export PCS_API_CFG_CMC_CONSOLE_HOST_INFO="PCS_API_CFG_CMC_CONSOLE_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_CONSOLE_HOST_INFO#$PCS_API_CFG_CMC_CONSOLE_HOST_INFO#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_BASE_URL" || export PCS_API_CFG_CMC_CONSOLE_BASE_URL="PCS_API_CFG_CMC_CONSOLE_BASE_URL" sed -i "s#PCS_API_CFG_CMC_CONSOLE_BASE_URL#$PCS_API_CFG_CMC_CONSOLE_BASE_URL#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_HOST_INFO" || export PCS_API_CFG_CMC_API_HOST_INFO="PCS_API_CFG_CMC_API_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_API_HOST_INFO#$PCS_API_CFG_CMC_API_HOST_INFO#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_BASE_URL" || export PCS_API_CFG_CMC_API_BASE_URL="PCS_API_CFG_CMC_API_BASE_URL" sed -i "s#PCS_API_CFG_CMC_API_BASE_URL#$PCS_API_CFG_CMC_API_BASE_URL#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_HOST_INFO" || export PCS_API_CFG_SCMS_HOST_INFO="PCS_API_CFG_SCMS_HOST_INFO" sed -i "s#PCS_API_CFG_SCMS_HOST_INFO#$PCS_API_CFG_SCMS_HOST_INFO#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_SCMS_HOST_INFO replace $PCS_API_CFG_SCMS_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_SCMS_HOST_INFO replace $PCS_API_CFG_SCMS_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_BASE_URL" || export PCS_API_CFG_SCMS_BASE_URL="PCS_API_CFG_SCMS_BASE_URL" sed -i "s#PCS_API_CFG_SCMS_BASE_URL#$PCS_API_CFG_SCMS_BASE_URL#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_SCMS_BASE_URL replace $PCS_API_CFG_SCMS_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_SCMS_BASE_URL replace $PCS_API_CFG_SCMS_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_HOST_INFO" || export PCS_API_CFG_YQDSJ_API_HOST_INFO="PCS_API_CFG_YQDSJ_API_HOST_INFO" sed -i "s#PCS_API_CFG_YQDSJ_API_HOST_INFO#$PCS_API_CFG_YQDSJ_API_HOST_INFO#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_BASE_URL" || export PCS_API_CFG_YQDSJ_API_BASE_URL="PCS_API_CFG_YQDSJ_API_BASE_URL" sed -i "s#PCS_API_CFG_YQDSJ_API_BASE_URL#$PCS_API_CFG_YQDSJ_API_BASE_URL#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_HOST_INFO" || export PCS_API_CFG_IDA_HOST_INFO="PCS_API_CFG_IDA_HOST_INFO" sed -i "s#PCS_API_CFG_IDA_HOST_INFO#$PCS_API_CFG_IDA_HOST_INFO#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_BASE_URL" || export PCS_API_CFG_IDA_BASE_URL="PCS_API_CFG_IDA_BASE_URL" sed -i "s#PCS_API_CFG_IDA_BASE_URL#$PCS_API_CFG_IDA_BASE_URL#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_BASE_URL" || export PCS_API_CFG_IDA_BASE_URL="PCS_API_CFG_IDA_BASE_URL" sed -i "s#PCS_API_CFG_IDA_BASE_URL#$PCS_API_CFG_IDA_BASE_URL#g" $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log } function PROD_COMMON_CONFIG_MAIN_LOCAL_PATH_exsit() { env | grep "PCS_API_CFG_DB_HOST" || export PCS_API_CFG_DB_HOST="PCS_API_CFG_DB_HOST" sed -i "s#PCS_API_CFG_DB_HOST#$PCS_API_CFG_DB_HOST#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_HOST replace $PCS_API_CFG_DB_HOST -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_HOST replace $PCS_API_CFG_DB_HOST -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_NAME" || export PCS_API_CFG_DB_NAME="PCS_API_CFG_DB_NAME" sed -i "s#PCS_API_CFG_DB_NAME#$PCS_API_CFG_DB_NAME#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_NAME replace $PCS_API_CFG_DB_NAME -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_NAME replace $PCS_API_CFG_DB_NAME -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_USERNAME" || export PCS_API_CFG_DB_USERNAME="PCS_API_CFG_DB_USERNAME" sed -i "s#PCS_API_CFG_DB_USERNAME#$PCS_API_CFG_DB_USERNAME#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_USERNAME replace $PCS_API_CFG_DB_USERNAME -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_USERNAME replace $PCS_API_CFG_DB_USERNAME -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_PASSWORD" || export PCS_API_CFG_DB_PASSWORD="PCS_API_CFG_DB_PASSWORD" sed -i "s#PCS_API_CFG_DB_PASSWORD#$PCS_API_CFG_DB_PASSWORD#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_PASSWORD replace $PCS_API_CFG_DB_PASSWORD -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_PASSWORD replace $PCS_API_CFG_DB_PASSWORD -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_TABLE_PREFIX" || export PCS_API_CFG_DB_TABLE_PREFIX="PCS_API_CFG_DB_TABLE_PREFIX" sed -i "s#PCS_API_CFG_DB_TABLE_PREFIX#$PCS_API_CFG_DB_TABLE_PREFIX#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_TABLE_PREFIX replace $PCS_API_CFG_DB_TABLE_PREFIX -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_TABLE_PREFIX replace $PCS_API_CFG_DB_TABLE_PREFIX -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_DB_CHARSET" || export PCS_API_CFG_DB_CHARSET="PCS_API_CFG_DB_CHARSET" sed -i "s#PCS_API_CFG_DB_CHARSET#$PCS_API_CFG_DB_CHARSET#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_DB_CHARSET replace $PCS_API_CFG_DB_CHARSET -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_DB_CHARSET replace $PCS_API_CFG_DB_CHARSET -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_HOSTNAME" || export PCS_API_CFG_REDIS_HOSTNAME="PCS_API_CFG_REDIS_HOSTNAME" sed -i "s#PCS_API_CFG_REDIS_HOSTNAME#$PCS_API_CFG_REDIS_HOSTNAME#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_HOSTNAME replace $PCS_API_CFG_REDIS_HOSTNAME -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_HOSTNAME replace $PCS_API_CFG_REDIS_HOSTNAME -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_PORT" || export PCS_API_CFG_REDIS_PORT="PCS_API_CFG_REDIS_PORT" sed -i "s#PCS_API_CFG_REDIS_PORT#$PCS_API_CFG_REDIS_PORT#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_PORT replace $PCS_API_CFG_REDIS_PORT -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_PORT replace $PCS_API_CFG_REDIS_PORT -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_PASSWORD" || export PCS_API_CFG_REDIS_PASSWORD="PCS_API_CFG_REDIS_PASSWORD" sed -i "s#PCS_API_CFG_REDIS_PASSWORD#$PCS_API_CFG_REDIS_PASSWORD#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_PASSWORD replace $PCS_API_CFG_REDIS_PASSWORD -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_PASSWORD replace $PCS_API_CFG_REDIS_PASSWORD -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_DATABASE" || export PCS_API_CFG_REDIS_DATABASE="PCS_API_CFG_REDIS_DATABASE" sed -i "s#PCS_API_CFG_REDIS_DATABASE#$PCS_API_CFG_REDIS_DATABASE#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_DATABASE replace $PCS_API_CFG_REDIS_DATABASE -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_DATABASE replace $PCS_API_CFG_REDIS_DATABASE -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_REDIS_CACHE_KEY_PREFIX" || export PCS_API_CFG_REDIS_CACHE_KEY_PREFIX="PCS_API_CFG_REDIS_CACHE_KEY_PREFIX" sed -i "s#PCS_API_CFG_REDIS_CACHE_KEY_PREFIX#$PCS_API_CFG_REDIS_CACHE_KEY_PREFIX#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_REDIS_CACHE_KEY_PREFIX replace $PCS_API_CFG_REDIS_CACHE_KEY_PREFIX -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_REDIS_CACHE_KEY_PREFIX replace $PCS_API_CFG_REDIS_CACHE_KEY_PREFIX -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_HOST_INFO" || export PCS_API_CFG_CMC_CONSOLE_HOST_INFO="PCS_API_CFG_CMC_CONSOLE_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_CONSOLE_HOST_INFO#$PCS_API_CFG_CMC_CONSOLE_HOST_INFO#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_BASE_URL" || export PCS_API_CFG_CMC_CONSOLE_BASE_URL="PCS_API_CFG_CMC_CONSOLE_BASE_URL" sed -i "s#PCS_API_CFG_CMC_CONSOLE_BASE_URL#$PCS_API_CFG_CMC_CONSOLE_BASE_URL#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_HOST_INFO" || export PCS_API_CFG_CMC_API_HOST_INFO="PCS_API_CFG_CMC_API_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_API_HOST_INFO#$PCS_API_CFG_CMC_API_HOST_INFO#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_BASE_URL" || export PCS_API_CFG_CMC_API_BASE_URL="PCS_API_CFG_CMC_API_BASE_URL" sed -i "s#PCS_API_CFG_CMC_API_BASE_URL#$PCS_API_CFG_CMC_API_BASE_URL#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_HOST_INFO" || export PCS_API_CFG_SCMS_HOST_INFO="PCS_API_CFG_SCMS_HOST_INFO" sed -i "s#PCS_API_CFG_SCMS_HOST_INFO#$PCS_API_CFG_SCMS_HOST_INFO#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_SCMS_HOST_INFO replace $PCS_API_CFG_SCMS_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_SCMS_HOST_INFO replace $PCS_API_CFG_SCMS_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_BASE_URL" || export PCS_API_CFG_SCMS_BASE_URL="PCS_API_CFG_SCMS_BASE_URL" sed -i "s#PCS_API_CFG_SCMS_BASE_URL#$PCS_API_CFG_SCMS_BASE_URL#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_SCMS_BASE_URL replace $PCS_API_CFG_SCMS_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_SCMS_BASE_URL replace $PCS_API_CFG_SCMS_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_HOST_INFO" || export PCS_API_CFG_YQDSJ_API_HOST_INFO="PCS_API_CFG_YQDSJ_API_HOST_INFO" sed -i "s#PCS_API_CFG_YQDSJ_API_HOST_INFO#$PCS_API_CFG_YQDSJ_API_HOST_INFO#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_BASE_URL" || export PCS_API_CFG_YQDSJ_API_BASE_URL="PCS_API_CFG_YQDSJ_API_BASE_URL" sed -i "s#PCS_API_CFG_YQDSJ_API_BASE_URL#$PCS_API_CFG_YQDSJ_API_BASE_URL#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_HOST_INFO" || export PCS_API_CFG_IDA_HOST_INFO="PCS_API_CFG_IDA_HOST_INFO" sed -i "s#PCS_API_CFG_IDA_HOST_INFO#$PCS_API_CFG_IDA_HOST_INFO#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_BASE_URL" || export PCS_API_CFG_IDA_BASE_URL="PCS_API_CFG_IDA_BASE_URL" sed -i "s#PCS_API_CFG_IDA_BASE_URL#$PCS_API_CFG_IDA_BASE_URL#g" $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH" >> $DIR/change.log } function DEV_COMMON_CONFIG_TEST_LOCAL_PATH_exsit() { env | grep "PCS_API_CFG_TEST_DB_HOST" || export PCS_API_CFG_TEST_DB_HOST="PCS_API_CFG_TEST_DB_HOST" sed -i "s#PCS_API_CFG_TEST_DB_HOST#$PCS_API_CFG_TEST_DB_HOST#g" $DEV_COMMON_CONFIG_TEST_LOCAL_PATH echo "PCS_API_CFG_TEST_DB_HOST replace $PCS_API_CFG_TEST_DB_HOST -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" echo "PCS_API_CFG_TEST_DB_HOST replace $PCS_API_CFG_TEST_DB_HOST -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_TEST_DB_NAME" || export PCS_API_CFG_TEST_DB_NAME="PCS_API_CFG_TEST_DB_NAME" sed -i "s#PCS_API_CFG_TEST_DB_NAME#$PCS_API_CFG_TEST_DB_NAME#g" $DEV_COMMON_CONFIG_TEST_LOCAL_PATH echo "PCS_API_CFG_TEST_DB_NAME replace $PCS_API_CFG_TEST_DB_NAME -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" echo "PCS_API_CFG_TEST_DB_NAME replace $PCS_API_CFG_TEST_DB_NAME -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_TEST_DB_USERNAME" || export PCS_API_CFG_TEST_DB_USERNAME="PCS_API_CFG_TEST_DB_USERNAME" sed -i "s#PCS_API_CFG_TEST_DB_USERNAME#$PCS_API_CFG_TEST_DB_USERNAME#g" $DEV_COMMON_CONFIG_TEST_LOCAL_PATH echo "PCS_API_CFG_TEST_DB_USERNAME replace $PCS_API_CFG_TEST_DB_USERNAME -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" echo "PCS_API_CFG_TEST_DB_USERNAME replace $PCS_API_CFG_TEST_DB_USERNAME -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_TEST_DB_PASSWORD" || export PCS_API_CFG_TEST_DB_PASSWORD="PCS_API_CFG_TEST_DB_PASSWORD" sed -i "s#PCS_API_CFG_TEST_DB_PASSWORD#$PCS_API_CFG_TEST_DB_PASSWORD#g" $DEV_COMMON_CONFIG_TEST_LOCAL_PATH echo "PCS_API_CFG_TEST_DB_PASSWORD replace $PCS_API_CFG_TEST_DB_PASSWORD -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" echo "PCS_API_CFG_TEST_DB_PASSWORD replace $PCS_API_CFG_TEST_DB_PASSWORD -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_TEST_DB_CHARSET" || export PCS_API_CFG_TEST_DB_CHARSET="PCS_API_CFG_TEST_DB_CHARSET" sed -i "s#PCS_API_CFG_TEST_DB_CHARSET#$PCS_API_CFG_TEST_DB_CHARSET#g" $DEV_COMMON_CONFIG_TEST_LOCAL_PATH echo "PCS_API_CFG_TEST_DB_CHARSET replace $PCS_API_CFG_TEST_DB_CHARSET -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" echo "PCS_API_CFG_TEST_DB_CHARSET replace $PCS_API_CFG_TEST_DB_CHARSET -> $DEV_COMMON_CONFIG_TEST_LOCAL_PATH" >> $DIR/change.log } function DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH_exsit() { env | grep "PCS_API_CFG_CMC_CONSOLE_HOST_INFO" || export PCS_API_CFG_CMC_CONSOLE_HOST_INFO="PCS_API_CFG_CMC_CONSOLE_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_CONSOLE_HOST_INFO#$PCS_API_CFG_CMC_CONSOLE_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_BASE_URL" || export PCS_API_CFG_CMC_CONSOLE_BASE_URL="PCS_API_CFG_CMC_CONSOLE_BASE_URL" sed -i "s#PCS_API_CFG_CMC_CONSOLE_BASE_URL#$PCS_API_CFG_CMC_CONSOLE_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_APP_KEY" || export PCS_API_CFG_CMC_CONSOLE_APP_KEY="PCS_API_CFG_CMC_CONSOLE_APP_KEY" sed -i "s#PCS_API_CFG_CMC_CONSOLE_APP_KEY#$PCS_API_CFG_CMC_CONSOLE_APP_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_APP_KEY replace $PCS_API_CFG_CMC_CONSOLE_APP_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_APP_KEY replace $PCS_API_CFG_CMC_CONSOLE_APP_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_APP_SECRET" || export PCS_API_CFG_CMC_CONSOLE_APP_SECRET="PCS_API_CFG_CMC_CONSOLE_APP_SECRET" sed -i "s#PCS_API_CFG_CMC_CONSOLE_APP_SECRET#$PCS_API_CFG_CMC_CONSOLE_APP_SECRET#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_APP_SECRET replace $PCS_API_CFG_CMC_CONSOLE_APP_SECRET -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_APP_SECRET replace $PCS_API_CFG_CMC_CONSOLE_APP_SECRET -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY" || export PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY="PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY" sed -i "s#PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY#$PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY replace $PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY replace $PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_HOST_INFO" || export PCS_API_CFG_CMC_API_HOST_INFO="PCS_API_CFG_CMC_API_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_API_HOST_INFO#$PCS_API_CFG_CMC_API_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_BASE_URL" || export PCS_API_CFG_CMC_API_BASE_URL="PCS_API_CFG_CMC_API_BASE_URL" sed -i "s#PCS_API_CFG_CMC_API_BASE_URL#$PCS_API_CFG_CMC_API_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_APP_KEY" || export PCS_API_CFG_CMC_API_APP_KEY="PCS_API_CFG_CMC_API_APP_KEY" sed -i "s#PCS_API_CFG_CMC_API_APP_KEY#$PCS_API_CFG_CMC_API_APP_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_APP_KEY replace $PCS_API_CFG_CMC_API_APP_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_APP_KEY replace $PCS_API_CFG_CMC_API_APP_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_APP_SECRET" || export PCS_API_CFG_CMC_API_APP_SECRET="PCS_API_CFG_CMC_API_APP_SECRET" sed -i "s#PCS_API_CFG_CMC_API_APP_SECRET#$PCS_API_CFG_CMC_API_APP_SECRET#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_APP_SECRET replace $PCS_API_CFG_CMC_API_APP_SECRET -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_APP_SECRET replace $PCS_API_CFG_CMC_API_APP_SECRET -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_SERVICE_KEY" || export PCS_API_CFG_CMC_API_SERVICE_KEY="PCS_API_CFG_CMC_API_SERVICE_KEY" sed -i "s#PCS_API_CFG_CMC_API_SERVICE_KEY#$PCS_API_CFG_CMC_API_SERVICE_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_SERVICE_KEY replace $PCS_API_CFG_CMC_API_SERVICE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_SERVICE_KEY replace $PCS_API_CFG_CMC_API_SERVICE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_GROUP_ID" || export PCS_API_CFG_CMC_API_USER_GROUP_ID="PCS_API_CFG_CMC_API_USER_GROUP_ID" sed -i "s#PCS_API_CFG_CMC_API_USER_GROUP_ID#$PCS_API_CFG_CMC_API_USER_GROUP_ID#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_GROUP_ID replace $PCS_API_CFG_CMC_API_USER_GROUP_ID -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_GROUP_ID replace $PCS_API_CFG_CMC_API_USER_GROUP_ID -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_SOURCE_ID" || export PCS_API_CFG_CMC_API_USER_SOURCE_ID="PCS_API_CFG_CMC_API_USER_SOURCE_ID" sed -i "s#PCS_API_CFG_CMC_API_USER_SOURCE_ID#$PCS_API_CFG_CMC_API_USER_SOURCE_ID#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_SOURCE_ID replace $PCS_API_CFG_CMC_API_USER_SOURCE_ID -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_SOURCE_ID replace $PCS_API_CFG_CMC_API_USER_SOURCE_ID -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_SOURCE_KEY" || export PCS_API_CFG_CMC_API_USER_SOURCE_KEY="PCS_API_CFG_CMC_API_USER_SOURCE_KEY" sed -i "s#PCS_API_CFG_CMC_API_USER_SOURCE_KEY#$PCS_API_CFG_CMC_API_USER_SOURCE_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_SOURCE_KEY replace $PCS_API_CFG_CMC_API_USER_SOURCE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_SOURCE_KEY replace $PCS_API_CFG_CMC_API_USER_SOURCE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_LOGIN_ID" || export PCS_API_CFG_CMC_API_USER_LOGIN_ID="PCS_API_CFG_CMC_API_USER_LOGIN_ID" sed -i "s#PCS_API_CFG_CMC_API_USER_LOGIN_ID#$PCS_API_CFG_CMC_API_USER_LOGIN_ID#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_LOGIN_ID replace $PCS_API_CFG_CMC_API_USER_LOGIN_ID -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_LOGIN_ID replace $PCS_API_CFG_CMC_API_USER_LOGIN_ID -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_PWD" || export PCS_API_CFG_CMC_API_USER_PWD="PCS_API_CFG_CMC_API_USER_PWD" sed -i "s#PCS_API_CFG_CMC_API_USER_PWD#$PCS_API_CFG_CMC_API_USER_PWD#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_PWD replace $PCS_API_CFG_CMC_API_USER_PWD -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_PWD replace $PCS_API_CFG_CMC_API_USER_PWD -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_EDITOR_HOST_INFO" || export PCS_API_CFG_SCMS_EDITOR_HOST_INFO="PCS_API_CFG_SCMS_EDITOR_HOST_INFO" sed -i "s#PCS_API_CFG_SCMS_EDITOR_HOST_INFO#$PCS_API_CFG_SCMS_EDITOR_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_SCMS_EDITOR_HOST_INFO replace $PCS_API_CFG_SCMS_EDITOR_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_SCMS_EDITOR_HOST_INFO replace $PCS_API_CFG_SCMS_EDITOR_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_EDITOR_BASE_URL" || export PCS_API_CFG_SCMS_EDITOR_BASE_URL="PCS_API_CFG_SCMS_EDITOR_BASE_URL" sed -i "s#PCS_API_CFG_SCMS_EDITOR_BASE_URL#$PCS_API_CFG_SCMS_EDITOR_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_SCMS_EDITOR_BASE_URL replace $PCS_API_CFG_SCMS_EDITOR_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_SCMS_EDITOR_BASE_URL replace $PCS_API_CFG_SCMS_EDITOR_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE" || export PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE="PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE#$PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE replace $PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE replace $PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_HOST_INFO" || export PCS_API_CFG_JOVE_HOST_INFO="PCS_API_CFG_JOVE_HOST_INFO" sed -i "s#PCS_API_CFG_JOVE_HOST_INFO#$PCS_API_CFG_JOVE_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_HOST_INFO replace $PCS_API_CFG_JOVE_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_HOST_INFO replace $PCS_API_CFG_JOVE_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_BASE_URL" || export PCS_API_CFG_JOVE_BASE_URL="PCS_API_CFG_JOVE_BASE_URL" sed -i "s#PCS_API_CFG_JOVE_BASE_URL#$PCS_API_CFG_JOVE_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_BASE_URL replace $PCS_API_CFG_JOVE_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_BASE_URL replace $PCS_API_CFG_JOVE_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_PARAMS_URL" || export PCS_API_CFG_JOVE_PARAMS_URL="PCS_API_CFG_JOVE_PARAMS_URL" sed -i "s#PCS_API_CFG_JOVE_PARAMS_URL#$PCS_API_CFG_JOVE_PARAMS_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_PARAMS_URL replace $PCS_API_CFG_JOVE_PARAMS_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_PARAMS_URL replace $PCS_API_CFG_JOVE_PARAMS_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_PARAMS_SOURCE" || export PCS_API_CFG_JOVE_PARAMS_SOURCE="PCS_API_CFG_JOVE_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_JOVE_PARAMS_SOURCE#$PCS_API_CFG_JOVE_PARAMS_SOURCE#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_PARAMS_SOURCE replace $PCS_API_CFG_JOVE_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_PARAMS_SOURCE replace $PCS_API_CFG_JOVE_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_HOST_INFO" || export PCS_API_CFG_YQDSJ_API_HOST_INFO="PCS_API_CFG_YQDSJ_API_HOST_INFO" sed -i "s#PCS_API_CFG_YQDSJ_API_HOST_INFO#$PCS_API_CFG_YQDSJ_API_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_BASE_URL" || export PCS_API_CFG_YQDSJ_API_BASE_URL="PCS_API_CFG_YQDSJ_API_BASE_URL" sed -i "s#PCS_API_CFG_YQDSJ_API_BASE_URL#$PCS_API_CFG_YQDSJ_API_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_SERVICE_KEY" || export PCS_API_CFG_YQDSJ_API_SERVICE_KEY="PCS_API_CFG_YQDSJ_API_SERVICE_KEY" sed -i "s#PCS_API_CFG_YQDSJ_API_SERVICE_KEY#$PCS_API_CFG_YQDSJ_API_SERVICE_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_SERVICE_KEY replace $PCS_API_CFG_YQDSJ_API_SERVICE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_SERVICE_KEY replace $PCS_API_CFG_YQDSJ_API_SERVICE_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_NOVA_HOST_INFO" || export PCS_API_CFG_NOVA_HOST_INFO="PCS_API_CFG_NOVA_HOST_INFO" sed -i "s#PCS_API_CFG_NOVA_HOST_INFO#$PCS_API_CFG_NOVA_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_NOVA_HOST_INFO replace $PCS_API_CFG_NOVA_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_NOVA_HOST_INFO replace $PCS_API_CFG_NOVA_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_NOVA_BASE_URL" || export PCS_API_CFG_NOVA_BASE_URL="PCS_API_CFG_NOVA_BASE_URL" sed -i "s#PCS_API_CFG_NOVA_BASE_URL#$PCS_API_CFG_NOVA_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_NOVA_BASE_URL replace $PCS_API_CFG_NOVA_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_NOVA_BASE_URL replace $PCS_API_CFG_NOVA_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_NOVA_PARAMS_SOURCE" || export PCS_API_CFG_NOVA_PARAMS_SOURCE="PCS_API_CFG_NOVA_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_NOVA_PARAMS_SOURCE#$PCS_API_CFG_NOVA_PARAMS_SOURCE#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_NOVA_PARAMS_SOURCE replace $PCS_API_CFG_NOVA_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_NOVA_PARAMS_SOURCE replace $PCS_API_CFG_NOVA_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_HOST_INFO" || export PCS_API_CFG_IDA_HOST_INFO="PCS_API_CFG_IDA_HOST_INFO" sed -i "s#PCS_API_CFG_IDA_HOST_INFO#$PCS_API_CFG_IDA_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_BASE_URL" || export PCS_API_CFG_IDA_BASE_URL="PCS_API_CFG_IDA_BASE_URL" sed -i "s#PCS_API_CFG_IDA_BASE_URL#$PCS_API_CFG_IDA_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_APP_KEY" || export PCS_API_CFG_IDA_APP_KEY="PCS_API_CFG_IDA_APP_KEY" sed -i "s#PCS_API_CFG_IDA_APP_KEY#$PCS_API_CFG_IDA_APP_KEY#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_APP_KEY replace $PCS_API_CFG_IDA_APP_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_APP_KEY replace $PCS_API_CFG_IDA_APP_KEY -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_APP_SECRET" || export PCS_API_CFG_IDA_APP_SECRET="PCS_API_CFG_IDA_APP_SECRET" sed -i "s#PCS_API_CFG_IDA_APP_SECRET#$PCS_API_CFG_IDA_APP_SECRET#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_APP_SECRET replace $PCS_API_CFG_IDA_APP_SECRET -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_APP_SECRET replace $PCS_API_CFG_IDA_APP_SECRET -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_HOST_INFO" || export PCS_API_CFG_CPU_HOST_INFO="PCS_API_CFG_CPU_HOST_INFO" sed -i "s#PCS_API_CFG_CPU_HOST_INFO#$PCS_API_CFG_CPU_HOST_INFO#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_HOST_INFO replace $PCS_API_CFG_CPU_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_HOST_INFO replace $PCS_API_CFG_CPU_HOST_INFO -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_BASE_URL" || export PCS_API_CFG_CPU_BASE_URL="PCS_API_CFG_CPU_BASE_URL" sed -i "s#PCS_API_CFG_CPU_BASE_URL#$PCS_API_CFG_CPU_BASE_URL#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_BASE_URL replace $PCS_API_CFG_CPU_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_BASE_URL replace $PCS_API_CFG_CPU_BASE_URL -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_PARAMS_XCONTENT" || export PCS_API_CFG_CPU_PARAMS_XCONTENT="PCS_API_CFG_CPU_PARAMS_XCONTENT" sed -i "s#PCS_API_CFG_CPU_PARAMS_XCONTENT#$PCS_API_CFG_CPU_PARAMS_XCONTENT#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_PARAMS_XCONTENT replace $PCS_API_CFG_CPU_PARAMS_XCONTENT -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_PARAMS_XCONTENT replace $PCS_API_CFG_CPU_PARAMS_XCONTENT -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_PARAMS_PCS" || export PCS_API_CFG_CPU_PARAMS_PCS="PCS_API_CFG_CPU_PARAMS_PCS" sed -i "s#PCS_API_CFG_CPU_PARAMS_PCS#$PCS_API_CFG_CPU_PARAMS_PCS#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_PARAMS_PCS replace $PCS_API_CFG_CPU_PARAMS_PCS -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_PARAMS_PCS replace $PCS_API_CFG_CPU_PARAMS_PCS -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_PARAMS_SOURCE" || export PCS_API_CFG_CPU_PARAMS_SOURCE="PCS_API_CFG_CPU_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_CPU_PARAMS_SOURCE#$PCS_API_CFG_CPU_PARAMS_SOURCE#g" $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_PARAMS_SOURCE replace $PCS_API_CFG_CPU_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_PARAMS_SOURCE replace $PCS_API_CFG_CPU_PARAMS_SOURCE -> $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log } function PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH_exsit() { env | grep "PCS_API_CFG_CMC_CONSOLE_HOST_INFO" || export PCS_API_CFG_CMC_CONSOLE_HOST_INFO="PCS_API_CFG_CMC_CONSOLE_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_CONSOLE_HOST_INFO#$PCS_API_CFG_CMC_CONSOLE_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_HOST_INFO replace $PCS_API_CFG_CMC_CONSOLE_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_BASE_URL" || export PCS_API_CFG_CMC_CONSOLE_BASE_URL="PCS_API_CFG_CMC_CONSOLE_BASE_URL" sed -i "s#PCS_API_CFG_CMC_CONSOLE_BASE_URL#$PCS_API_CFG_CMC_CONSOLE_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_BASE_URL replace $PCS_API_CFG_CMC_CONSOLE_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_APP_KEY" || export PCS_API_CFG_CMC_CONSOLE_APP_KEY="PCS_API_CFG_CMC_CONSOLE_APP_KEY" sed -i "s#PCS_API_CFG_CMC_CONSOLE_APP_KEY#$PCS_API_CFG_CMC_CONSOLE_APP_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_APP_KEY replace $PCS_API_CFG_CMC_CONSOLE_APP_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_APP_KEY replace $PCS_API_CFG_CMC_CONSOLE_APP_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_APP_SECRET" || export PCS_API_CFG_CMC_CONSOLE_APP_SECRET="PCS_API_CFG_CMC_CONSOLE_APP_SECRET" sed -i "s#PCS_API_CFG_CMC_CONSOLE_APP_SECRET#$PCS_API_CFG_CMC_CONSOLE_APP_SECRET#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_APP_SECRET replace $PCS_API_CFG_CMC_CONSOLE_APP_SECRET -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_APP_SECRET replace $PCS_API_CFG_CMC_CONSOLE_APP_SECRET -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY" || export PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY="PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY" sed -i "s#PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY#$PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY replace $PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY replace $PCS_API_CFG_CMC_CONSOLE_SERVICE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_HOST_INFO" || export PCS_API_CFG_CMC_API_HOST_INFO="PCS_API_CFG_CMC_API_HOST_INFO" sed -i "s#PCS_API_CFG_CMC_API_HOST_INFO#$PCS_API_CFG_CMC_API_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_HOST_INFO replace $PCS_API_CFG_CMC_API_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_BASE_URL" || export PCS_API_CFG_CMC_API_BASE_URL="PCS_API_CFG_CMC_API_BASE_URL" sed -i "s#PCS_API_CFG_CMC_API_BASE_URL#$PCS_API_CFG_CMC_API_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_BASE_URL replace $PCS_API_CFG_CMC_API_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_APP_KEY" || export PCS_API_CFG_CMC_API_APP_KEY="PCS_API_CFG_CMC_API_APP_KEY" sed -i "s#PCS_API_CFG_CMC_API_APP_KEY#$PCS_API_CFG_CMC_API_APP_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_APP_KEY replace $PCS_API_CFG_CMC_API_APP_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_APP_KEY replace $PCS_API_CFG_CMC_API_APP_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_APP_SECRET" || export PCS_API_CFG_CMC_API_APP_SECRET="PCS_API_CFG_CMC_API_APP_SECRET" sed -i "s#PCS_API_CFG_CMC_API_APP_SECRET#$PCS_API_CFG_CMC_API_APP_SECRET#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_APP_SECRET replace $PCS_API_CFG_CMC_API_APP_SECRET -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_APP_SECRET replace $PCS_API_CFG_CMC_API_APP_SECRET -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_SERVICE_KEY" || export PCS_API_CFG_CMC_API_SERVICE_KEY="PCS_API_CFG_CMC_API_SERVICE_KEY" sed -i "s#PCS_API_CFG_CMC_API_SERVICE_KEY#$PCS_API_CFG_CMC_API_SERVICE_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_SERVICE_KEY replace $PCS_API_CFG_CMC_API_SERVICE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_SERVICE_KEY replace $PCS_API_CFG_CMC_API_SERVICE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_GROUP_ID" || export PCS_API_CFG_CMC_API_USER_GROUP_ID="PCS_API_CFG_CMC_API_USER_GROUP_ID" sed -i "s#PCS_API_CFG_CMC_API_USER_GROUP_ID#$PCS_API_CFG_CMC_API_USER_GROUP_ID#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_GROUP_ID replace $PCS_API_CFG_CMC_API_USER_GROUP_ID -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_GROUP_ID replace $PCS_API_CFG_CMC_API_USER_GROUP_ID -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_SOURCE_ID" || export PCS_API_CFG_CMC_API_USER_SOURCE_ID="PCS_API_CFG_CMC_API_USER_SOURCE_ID" sed -i "s#PCS_API_CFG_CMC_API_USER_SOURCE_ID#$PCS_API_CFG_CMC_API_USER_SOURCE_ID#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_SOURCE_ID replace $PCS_API_CFG_CMC_API_USER_SOURCE_ID -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_SOURCE_ID replace $PCS_API_CFG_CMC_API_USER_SOURCE_ID -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_SOURCE_KEY" || export PCS_API_CFG_CMC_API_USER_SOURCE_KEY="PCS_API_CFG_CMC_API_USER_SOURCE_KEY" sed -i "s#PCS_API_CFG_CMC_API_USER_SOURCE_KEY#$PCS_API_CFG_CMC_API_USER_SOURCE_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_SOURCE_KEY replace $PCS_API_CFG_CMC_API_USER_SOURCE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_SOURCE_KEY replace $PCS_API_CFG_CMC_API_USER_SOURCE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_LOGIN_ID" || export PCS_API_CFG_CMC_API_USER_LOGIN_ID="PCS_API_CFG_CMC_API_USER_LOGIN_ID" sed -i "s#PCS_API_CFG_CMC_API_USER_LOGIN_ID#$PCS_API_CFG_CMC_API_USER_LOGIN_ID#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_LOGIN_ID replace $PCS_API_CFG_CMC_API_USER_LOGIN_ID -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_LOGIN_ID replace $PCS_API_CFG_CMC_API_USER_LOGIN_ID -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CMC_API_USER_PWD" || export PCS_API_CFG_CMC_API_USER_PWD="PCS_API_CFG_CMC_API_USER_PWD" sed -i "s#PCS_API_CFG_CMC_API_USER_PWD#$PCS_API_CFG_CMC_API_USER_PWD#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CMC_API_USER_PWD replace $PCS_API_CFG_CMC_API_USER_PWD -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CMC_API_USER_PWD replace $PCS_API_CFG_CMC_API_USER_PWD -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_EDITOR_HOST_INFO" || export PCS_API_CFG_SCMS_EDITOR_HOST_INFO="PCS_API_CFG_SCMS_EDITOR_HOST_INFO" sed -i "s#PCS_API_CFG_SCMS_EDITOR_HOST_INFO#$PCS_API_CFG_SCMS_EDITOR_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_SCMS_EDITOR_HOST_INFO replace $PCS_API_CFG_SCMS_EDITOR_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_SCMS_EDITOR_HOST_INFO replace $PCS_API_CFG_SCMS_EDITOR_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_EDITOR_BASE_URL" || export PCS_API_CFG_SCMS_EDITOR_BASE_URL="PCS_API_CFG_SCMS_EDITOR_BASE_URL" sed -i "s#PCS_API_CFG_SCMS_EDITOR_BASE_URL#$PCS_API_CFG_SCMS_EDITOR_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_SCMS_EDITOR_BASE_URL replace $PCS_API_CFG_SCMS_EDITOR_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_SCMS_EDITOR_BASE_URL replace $PCS_API_CFG_SCMS_EDITOR_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE" || export PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE="PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE#$PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE replace $PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE replace $PCS_API_CFG_SCMS_EDITOR_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_HOST_INFO" || export PCS_API_CFG_JOVE_HOST_INFO="PCS_API_CFG_JOVE_HOST_INFO" sed -i "s#PCS_API_CFG_JOVE_HOST_INFO#$PCS_API_CFG_JOVE_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_HOST_INFO replace $PCS_API_CFG_JOVE_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_HOST_INFO replace $PCS_API_CFG_JOVE_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_BASE_URL" || export PCS_API_CFG_JOVE_BASE_URL="PCS_API_CFG_JOVE_BASE_URL" sed -i "s#PCS_API_CFG_JOVE_BASE_URL#$PCS_API_CFG_JOVE_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_BASE_URL replace $PCS_API_CFG_JOVE_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_BASE_URL replace $PCS_API_CFG_JOVE_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_PARAMS_URL" || export PCS_API_CFG_JOVE_PARAMS_URL="PCS_API_CFG_JOVE_PARAMS_URL" sed -i "s#PCS_API_CFG_JOVE_PARAMS_URL#$PCS_API_CFG_JOVE_PARAMS_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_PARAMS_URL replace $PCS_API_CFG_JOVE_PARAMS_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_PARAMS_URL replace $PCS_API_CFG_JOVE_PARAMS_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_JOVE_PARAMS_SOURCE" || export PCS_API_CFG_JOVE_PARAMS_SOURCE="PCS_API_CFG_JOVE_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_JOVE_PARAMS_SOURCE#$PCS_API_CFG_JOVE_PARAMS_SOURCE#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_JOVE_PARAMS_SOURCE replace $PCS_API_CFG_JOVE_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_JOVE_PARAMS_SOURCE replace $PCS_API_CFG_JOVE_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_HOST_INFO" || export PCS_API_CFG_YQDSJ_API_HOST_INFO="PCS_API_CFG_YQDSJ_API_HOST_INFO" sed -i "s#PCS_API_CFG_YQDSJ_API_HOST_INFO#$PCS_API_CFG_YQDSJ_API_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_HOST_INFO replace $PCS_API_CFG_YQDSJ_API_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_BASE_URL" || export PCS_API_CFG_YQDSJ_API_BASE_URL="PCS_API_CFG_YQDSJ_API_BASE_URL" sed -i "s#PCS_API_CFG_YQDSJ_API_BASE_URL#$PCS_API_CFG_YQDSJ_API_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_BASE_URL replace $PCS_API_CFG_YQDSJ_API_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_YQDSJ_API_SERVICE_KEY" || export PCS_API_CFG_YQDSJ_API_SERVICE_KEY="PCS_API_CFG_YQDSJ_API_SERVICE_KEY" sed -i "s#PCS_API_CFG_YQDSJ_API_SERVICE_KEY#$PCS_API_CFG_YQDSJ_API_SERVICE_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_YQDSJ_API_SERVICE_KEY replace $PCS_API_CFG_YQDSJ_API_SERVICE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_YQDSJ_API_SERVICE_KEY replace $PCS_API_CFG_YQDSJ_API_SERVICE_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_NOVA_HOST_INFO" || export PCS_API_CFG_NOVA_HOST_INFO="PCS_API_CFG_NOVA_HOST_INFO" sed -i "s#PCS_API_CFG_NOVA_HOST_INFO#$PCS_API_CFG_NOVA_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_NOVA_HOST_INFO replace $PCS_API_CFG_NOVA_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_NOVA_HOST_INFO replace $PCS_API_CFG_NOVA_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_NOVA_BASE_URL" || export PCS_API_CFG_NOVA_BASE_URL="PCS_API_CFG_NOVA_BASE_URL" sed -i "s#PCS_API_CFG_NOVA_BASE_URL#$PCS_API_CFG_NOVA_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_NOVA_BASE_URL replace $PCS_API_CFG_NOVA_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_NOVA_BASE_URL replace $PCS_API_CFG_NOVA_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_NOVA_PARAMS_SOURCE" || export PCS_API_CFG_NOVA_PARAMS_SOURCE="PCS_API_CFG_NOVA_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_NOVA_PARAMS_SOURCE#$PCS_API_CFG_NOVA_PARAMS_SOURCE#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_NOVA_PARAMS_SOURCE replace $PCS_API_CFG_NOVA_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_NOVA_PARAMS_SOURCE replace $PCS_API_CFG_NOVA_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_HOST_INFO" || export PCS_API_CFG_IDA_HOST_INFO="PCS_API_CFG_IDA_HOST_INFO" sed -i "s#PCS_API_CFG_IDA_HOST_INFO#$PCS_API_CFG_IDA_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_HOST_INFO replace $PCS_API_CFG_IDA_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_BASE_URL" || export PCS_API_CFG_IDA_BASE_URL="PCS_API_CFG_IDA_BASE_URL" sed -i "s#PCS_API_CFG_IDA_BASE_URL#$PCS_API_CFG_IDA_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_BASE_URL replace $PCS_API_CFG_IDA_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_APP_KEY" || export PCS_API_CFG_IDA_APP_KEY="PCS_API_CFG_IDA_APP_KEY" sed -i "s#PCS_API_CFG_IDA_APP_KEY#$PCS_API_CFG_IDA_APP_KEY#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_APP_KEY replace $PCS_API_CFG_IDA_APP_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_APP_KEY replace $PCS_API_CFG_IDA_APP_KEY -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_IDA_APP_SECRET" || export PCS_API_CFG_IDA_APP_SECRET="PCS_API_CFG_IDA_APP_SECRET" sed -i "s#PCS_API_CFG_IDA_APP_SECRET#$PCS_API_CFG_IDA_APP_SECRET#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_IDA_APP_SECRET replace $PCS_API_CFG_IDA_APP_SECRET -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_IDA_APP_SECRET replace $PCS_API_CFG_IDA_APP_SECRET -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_HOST_INFO" || export PCS_API_CFG_CPU_HOST_INFO="PCS_API_CFG_CPU_HOST_INFO" sed -i "s#PCS_API_CFG_CPU_HOST_INFO#$PCS_API_CFG_CPU_HOST_INFO#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_HOST_INFO replace $PCS_API_CFG_CPU_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_HOST_INFO replace $PCS_API_CFG_CPU_HOST_INFO -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_BASE_URL" || export PCS_API_CFG_CPU_BASE_URL="PCS_API_CFG_CPU_BASE_URL" sed -i "s#PCS_API_CFG_CPU_BASE_URL#$PCS_API_CFG_CPU_BASE_URL#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_BASE_URL replace $PCS_API_CFG_CPU_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_BASE_URL replace $PCS_API_CFG_CPU_BASE_URL -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_PARAMS_XCONTENT" || export PCS_API_CFG_CPU_PARAMS_XCONTENT="PCS_API_CFG_CPU_PARAMS_XCONTENT" sed -i "s#PCS_API_CFG_CPU_PARAMS_XCONTENT#$PCS_API_CFG_CPU_PARAMS_XCONTENT#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_PARAMS_XCONTENT replace $PCS_API_CFG_CPU_PARAMS_XCONTENT -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_PARAMS_XCONTENT replace $PCS_API_CFG_CPU_PARAMS_XCONTENT -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_PARAMS_PCS" || export PCS_API_CFG_CPU_PARAMS_PCS="PCS_API_CFG_CPU_PARAMS_PCS" sed -i "s#PCS_API_CFG_CPU_PARAMS_PCS#$PCS_API_CFG_CPU_PARAMS_PCS#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_PARAMS_PCS replace $PCS_API_CFG_CPU_PARAMS_PCS -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_PARAMS_PCS replace $PCS_API_CFG_CPU_PARAMS_PCS -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log env | grep "PCS_API_CFG_CPU_PARAMS_SOURCE" || export PCS_API_CFG_CPU_PARAMS_SOURCE="PCS_API_CFG_CPU_PARAMS_SOURCE" sed -i "s#PCS_API_CFG_CPU_PARAMS_SOURCE#$PCS_API_CFG_CPU_PARAMS_SOURCE#g" $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH echo "PCS_API_CFG_CPU_PARAMS_SOURCE replace $PCS_API_CFG_CPU_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" echo "PCS_API_CFG_CPU_PARAMS_SOURCE replace $PCS_API_CFG_CPU_PARAMS_SOURCE -> $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH" >> $DIR/change.log } function NGINX_PCS_API_PATH_exsit() { env | grep "PCS_API_CFG_NGINX_SERVER_NAME" || export PCS_API_CFG_NGINX_SERVER_NAME="PCS_API_CFG_NGINX_SERVER_NAME" sed -i "s#PCS_API_CFG_NGINX_SERVER_NAME#$PCS_API_CFG_NGINX_SERVER_NAME#g" $NGINX_PCS_API_PATH echo "PCS_API_CFG_NGINX_SERVER_NAME replace $PCS_API_CFG_NGINX_SERVER_NAME -> $NGINX_PCS_API_PATH" echo "PCS_API_CFG_NGINX_SERVER_NAME replace $PCS_API_CFG_NGINX_SERVER_NAME -> $NGINX_PCS_API_PATH" >> $DIR/change.log } # 判断文件是否存在 ls $DEV_COMMON_CONFIG_MAIN_LOCAL_PATH >/dev/null 2>&1 && DEV_COMMON_CONFIG_MAIN_LOCAL_PATH_exsit || echo "$DEV_COMMON_CONFIG_MAIN_LOCAL_PATH 不存在" >> $DIR/change.log ls $PROD_COMMON_CONFIG_MAIN_LOCAL_PATH >/dev/null 2>&1 && PROD_COMMON_CONFIG_MAIN_LOCAL_PATH_exsit || echo "$PROD_COMMON_CONFIG_MAIN_LOCAL_PATH 不存在" >> $DIR/change.log ls $DEV_COMMON_CONFIG_TEST_LOCAL_PATH >/dev/null 2>&1 && DEV_COMMON_CONFIG_TEST_LOCAL_PATH_exsit || echo "$DEV_COMMON_CONFIG_TEST_LOCAL_PATH 不存在" >> $DIR/change.log ls $DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH >/dev/null 2>&1 && DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH_exsit || echo "$DEV_COMMON_CONFIG_PARAMS_LOCAL_PATH 不存在" >> $DIR/change.log ls $PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH >/dev/null 2>&1 && PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH_exsit || echo "$PROD_COMMON_CONFIG_PARAMS_LOCAL_PATH 不存在" >> $DIR/change.log ls $NGINX_PCS_API_PATH >/dev/null 2>&1 && NGINX_PCS_API_PATH_exsit || echo "$NGINX_PCS_API_PATH 不存在" >> $DIR/change.log
4、重新构建镜像后,当升级时,缺少 PCS_API_CFG_CPU_PARAMS_SOURCE=chinamcloud_pcs // CP上传的参数的系统来源标识,特意删除此变量,如图2
5、仍然可以升级成功,进入容器,查看需要替换环境变量的配置文件,PCS_API_CFG_CPU_PARAMS_SOURCE 未被替换,如图3
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/181176.html