Skip to content

Overriding init.sh results in two init.sh headers in the sls.tgz #736

@brahms

Description

@brahms

What happened?

In an sls repo create a service directory with a file named service/bin/init.sh.

run ./gradlew distTar

Find that the resulting tar has two init.sh files in the tar.

$ tree service/
service/
└── bin
    ├── health-server.py
    ├── init.sh

tar tf build/distributions/....sls.tgz | grep init.sh
.../service/bin/init.sh
.../service/bin/init.sh

What did you want to happen?

I would expect that I would have only one init.sh file in the resulting tar, the one that I put in the folder service/bin/init.sh in the git repo.

I think this plugin should intelligently disable the createInitScript task if the file exists, or the createInitScript task should intelligently use the one on disk rather then creating it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions