【问题标题】:How can i check PEAR mail is installed on my server by shell script?如何通过 shell 脚本检查 PEAR 邮件是否安装在我的服务器上?
【发布时间】:2014-03-01 23:58:06
【问题描述】:

我想在 AWS Elastic Beanstalk 应用程序上安装 PEAR 邮件。通过 .ebextension 我可以运行这个命令

container_commands: 
  01-command: 
    command: pear install mail
  02-command: 
    command: pear install net_smtp

我收到一些类似 'pear mail is already installed'
之类的 eorr 我如何检查 shell 脚本是否已安装梨邮件。所以我可以检查和安装。 或者其他没有错误的安装方式?

谢谢

【问题讨论】:

    标签: linux shell amazon-web-services amazon-elastic-beanstalk


    【解决方案1】:

    如果您的命令失败,您可以指示 beanstalk 忽略错误:

    container_commands: 
      01-command: 
        command: pear install mail
        ignoreErrors: true
    

    【讨论】:

      猜你喜欢
      • 2011-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-05
      • 1970-01-01
      • 1970-01-01
      • 2018-03-16
      相关资源
      最近更新 更多