this構造のYAMLファイルを作成しています。YAMLファイルの中からunixコマンドを実行することはできますか?
私の正確なコードはこれです:
# This is an appspec.yml template file for use with AWS CodeDeploy.
# The lines in this template starting with the hashtag symbol are
# instructional comments and can be safely left in the file or
# ignored.
# For help completing this file, see the "AppSpec File Reference" in the
# "AWS CodeDeploy User Guide" at
# http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref.html
version: 0.0
# Specify "os: linux" if this revision targets Amazon Linux,
# Red Hat Enterprise Linux (RHEL), or Ubuntu Server
# instances.
# Specify "os: windows" if this revision targets Windows Server instances.
# (You cannot specify both "os: linux" and "os: windows".)
os: linux
hooks:
AfterInstall:
- location: StartUIServices.sh
timeout: 180
runas: root
問題は、私は場所スクリプトがある前に、別のディレクトリまたはsed -i 's/\r$//' file1*
(エンディングUnixのラインにファイルを変換する)のいずれかであるcd
Unixコマンドを実行する必要があります走った。どうすればいいですか?