Category: Shell
-
Post Views: 14 1. When there is an environment variable, the replacement is not performed, the variable in the file /etc/nginx/conf.d/pcs.conf is not replaced, and there is a replacement record in /config/init/change.log, as shown in Figure 1 2. Check the container log, report an error: sed: couldnT open file ww/pcs/build/config.js: No such file or directory 3. pcs_cfg_callback_login=https://cmclogin.chinamcloud.com/login/index?call_back=http://wjdev2.chinamcloud.com:8657/#/topic/add, there is #…
-
Post Views: 15 1, \build\c_files\config\init\config0.sh, replace the shell script of environment variables 2. When upgrading, the system source ID of the parameters uploaded by the CP upload is missing, and the boot container fails, as shown in Figure 1 3. Edit \build\c_files\config\init\config0.sh, and replace the shell script of the environment variable. When an environment variable exists, the replacement operation is…
-
Post Views: 13 1. View the \build\c_files\config\init\config0.sh file 2. In the Rancher environment variable, the values of pcs_api_cfg_cpu_params_xcontent, pcs_api_cfg_cpu_params_pcs are Chinese, as shown in Figure 1 3. After the upgrade is completed, go to the container to check, and find that the variables in the configuration file have not been replaced, as shown in Figure 2 4. Edit the \build\c_files\config\init\config0.sh…
-
Post Views: 12 1. The image is successfully built in Jenkins, as shown in Figure 1 2. Execute the upgrade in Rancher and report an error: sed: -e expression #1, char 36: unknownd option toS, as shown in Figure 2 3. Replace the / in the .sh file with @, as shown in Figure 3 sed -i “s/cmcp_api_cfg_yii_debug/$cmcp_api_cfg_yii_debug/g” /sobey/www/cmcp-api/.env; be…