【问题标题】:Running shell script before downloading dependencies of rpm?在下载 rpm 的依赖项之前运行 shell 脚本?
【发布时间】:2017-06-16 10:37:24
【问题描述】:

这里我正在使用 gradle 构建 rpm。我正在使用 nebula.ospackage 。有什么方法可以让我在下载 httpd 之前运行 shell 脚本。

buildRpm {
dependsOn "extractApps", "extractConfig"

requires('httpd')
requires('mod_ssl')
requires('mod_wsgi')


preInstall file("${projectDir}/scripts/preinstall.sh")
postInstall file("${projectDir}/scripts/postinstall.sh")
}

简单来说,在 require 运行之前运行 shell 脚本?

【问题讨论】:

    标签: shell gradle centos rpm yum


    【解决方案1】:

    在 rpm 检查依赖关系(或由 gradle 启动下载)之前运行的 *.rpm 包中没有脚本。

    您需要针对您的请求专注于 gradle(或 yum)。 RPM 不是正确的地方。

    【讨论】:

      猜你喜欢
      • 2012-10-31
      • 1970-01-01
      • 2013-07-20
      • 2020-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-16
      • 2019-09-27
      相关资源
      最近更新 更多