Tag: sed
-
Post Views: 14 1. All Rancher environment variables at this stage have no default values, so they must be clearly set in the Rancher environment variables, as shown in Figure 1 2. The configuration file of the previous environment variable, if the environment variable is not set: channel_pub_api_cfg_db_table_pr efix, then set its default value to: channel_pub_api_cfg_db_table_prefix, that is, its value…
-
Post Views: 40 1. When the RAncher container is upgraded, execute the shell script error: sed: -e expression #1, char 37: unknown option to `s, as shown in Figure 1 2. The value of the environment variable CMCP_API_CFG_REdis_password is q5dhp@xcbuujy^L, which leads to the failure of the upgrade, and the value is changed to q5dhp@xcbuujyl, remove the ^ symbol, upgrade…
-
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: 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…