Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Creating an empty folder #124

Open
kpcyrd opened this issue May 11, 2020 · 3 comments
Open

Creating an empty folder #124

kpcyrd opened this issue May 11, 2020 · 3 comments

Comments

@kpcyrd
Copy link

kpcyrd commented May 11, 2020

Hello!

I'm trying to create an empty folder in /etc/ that is going to hold config files that the user is going to write.

This could be implemented with:

assets = [
    # binary
    ["target/release/foo", "usr/bin/", "755"],
    # directory
    ["etc/my/empty/folder/", "755"],
]

thanks!

@kornelski
Copy link
Collaborator

How does that work in Debian? Is it enough to just make the dir in the tarball?

@kpcyrd
Copy link
Author

kpcyrd commented May 12, 2020

Yes. If you want lintian to be happy you'd also need to add an override for package-contains-empty-directory:
https://lintian.debian.org/tags/package-contains-empty-directory.html

@ximon18
Copy link
Contributor

ximon18 commented Jul 30, 2020

If you are using a systemd unit you can also use the ConfigurationDirectory directive.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants