kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
408 stars 48 forks source link

set user permission #37

Closed jb-alvarado closed 2 years ago

jb-alvarado commented 2 years ago

Hello, thank you for your project, it is very useful!

I only wanted to ask, if it is possible to set user permission?

I have some assets which goes to /usr/share/ffplayout. My program runs under user www-data and first run it will initialize a sqlite db file in that folder. But because the deb installation creates the folder with root permission, my program can not create the db file.

Is there a option for that?

Edit: Sorry I was to fast with asking. I found a solution with a postinst script.