I want to install PEAR mail on AWS Elastic Beanstalk applicatoin. By .ebextension i can run this command
我想在AWS Elastic Beanstalk应用程序上安装PEAR邮件。通过.ebextension,我可以运行此命令
container_commands:
01-command:
command: pear install mail
02-command:
command: pear install net_smtp
I am getting some eorr like 'pear mail is already installed '
How can i check pear mail is already installed by shell script. So i can check and install. Or any other way to install without any error ?
我得到一些像'已经安装梨邮件'的eorr如何检查已经通过shell脚本安装梨邮件。所以我可以检查并安装。或者任何其他安装方式没有任何错误?
Thanks
1 个解决方案
#1
1
You can instruct beanstalk to ignore errors if your command fails:
如果命令失败,您可以指示beanstalk忽略错误:
container_commands:
01-command:
command: pear install mail
ignoreErrors: true
#1
1
You can instruct beanstalk to ignore errors if your command fails:
如果命令失败,您可以指示beanstalk忽略错误:
container_commands:
01-command:
command: pear install mail
ignoreErrors: true