OSA安装过程中提示运行“install/auto_prepare.sh”安装错误

对于OSA安装过程中进行到如下步骤要求运行install/auto_prepare.sh

OSA

按提示在中断运行install/auto_prepare.sh后提示以下错误

install error!
Your script into the path:/dev/pts/0/osa/ctrlphp/install or /dev/pts/0/osa/.
exp: /usr/local/osa/auto_prepare.sh or /usr/local/osa/ctrlphp/install/auto_prepare.sh .

经排查为auto_prepare.sh脚本中获取脚本路径出错,修改auto_prepare.sh脚本

将第9行:

INSTALL_PATH=$(dirname $(readlink /proc/$$/fd/255))

更改为:

INSTALL_PATH=$(dirname $(dirname $(pwd)))

然后重新执行脚本即可。

osa_install

【上一篇】: 【下一篇】:

0 Comments.