在 Rancher 中升级容器,报错:/config/init/config0.sh: line 1314: syntax error near unexpected token `}’ 的分析解决

1、在 Rancher 中升级容器,报错:/config/init/config0.sh: line 1314: syntax error near unexpected token `}’,如图1

在 Rancher 中升级容器,报错:/config/init/config0.sh: line 1314: syntax error near unexpected token `}'

图1

2019/7/31 下午3:46:16CHANNEL_PUB_API_CFG_URL_SIGNER_TIME_OUT=10
2019/7/31 下午3:46:16/config/init/config0.sh: line 1314: syntax error near unexpected token `}'

2、在 PhpStorm 中,编辑 /config/init/config0.sh,提示:Expected a command. ,注释掉相应代码,如图2

在 PhpStorm 中,编辑 /config/init/config0.sh,提示:Expected a command. ,注释掉相应代码

图2

# function DEV_NETEASE_CONFIG_MAIN_LOCAL_PATH_exsit()
# {
# }

# function PROD_NETEASE_CONFIG_MAIN_LOCAL_PATH_exsit()
# {
# }

3、在 Rancher 中升级成功,如图3

在 Rancher 中升级成功

图3

2019/7/31 下午4:54:18No new migrations found. Your system is up-to-date.
2019/7/31 下午4:54:18Model (Penguin's third-party service platform application) created successfully
2019/7/31 下午4:54:19Model (Penguin's content website application) created successfully
2019/7/31 下午4:54:19Model (microblogging micro-connected web application) created successfully
2019/7/31 下午4:54:19Model (WeChat third-party platform application) created successfully

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/181370.html

(0)
上一篇 2021年10月31日
下一篇 2021年10月31日

相关推荐

发表回复

登录后才能评论