Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative path in DEBIAN/conffiles #684

Closed
gerdriesselmann opened this issue Nov 1, 2015 · 2 comments
Closed

Relative path in DEBIAN/conffiles #684

gerdriesselmann opened this issue Nov 1, 2015 · 2 comments
Labels
debian documentation Documentation should be extended or updated

Comments

@gerdriesselmann
Copy link

When placing a file in either

src/linux/usr/share/[name]/conf/[file]

or

src/linux/etc/[path]/[file]

it gets correctly packaged, and inserted into DEBIAN/conffiles.

However the entries are missing a leading slash.

Got:

usr/share/[name]/conf/[file]
etc/[path]/[file]

Expected:

/usr/share/[name]/conf/[file]
/etc/[path]/[file]
@muuki88 muuki88 added debian bug documentation Documentation should be extended or updated and removed bug labels Nov 1, 2015
@muuki88
Copy link
Contributor

muuki88 commented Nov 1, 2015

Thanks for the report. The behavior is actually intended. We map the content into the installationDirectory.

In your case this means you put your files in

src/linux/conf/[file]

If you use the JavaServerAppPackaging archetype a symlink from /etc/<packageName> to /usr/share/<packageName>/conf gets created, so no need to copy these files.

If you want to add files outside the installation folder, use the mappings or linuxPackageMappings (if you need special permissions).

See linux plugin docs and the Mappings Helper docs / scala docs

@muuki88 muuki88 closed this as completed Nov 1, 2015
@gerdriesselmann
Copy link
Author

Thanks for the reply!

I tried, and actually I had to place the file at

src/universal/conf/[file]

See code

Everything inside src/linux got copied to / inside the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debian documentation Documentation should be extended or updated
Projects
None yet
Development

No branches or pull requests

2 participants