我有PHP的作曲家安裝在全球,我試圖讓Puppet自動運行作曲家自更新命令。使用Puppet自動更新作曲家自我更新
這裏是我的清單:
exec { "composer self-update":
path => '/usr/local/bin/'
}
暗戰 「在/ usr/local/bin目錄/作曲家自我更新」 爲根手工作品,但木偶運行時它生成此錯誤:
change from notrun to 0 failed: /usr/bin/env: php: No such file or directory
我不知道爲什麼手動行爲與Puppet行爲不同。
此外,我有Puppet作爲根運行。