Execute the upgrade in Rancher, and report an error: sed: -e expression #1, char 36: unknownd option toSThe solution of
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 replaced
sed -i “s@cmcp_api_cfg_yii_debug@$cmcp_api_cfg_yii_debug@g” /sobey/www/cmcp-api/.env;
4. Execute the upgrade in Rancher, success


