View Single Post
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#4
Originally Posted by flgor View Post
....
I think my process does not have the rights to create a new file in /opt/my-app/ directory.
How can i change this from the installation package?
there are post installation scripts ( postinst ) in the debian folder. They will exist as postinst.ex, make sure you remove the extension .ex.
insert a command like this in it

chown -R user <package_path>

that should give the ownership of the package folder to the "user" user that will be exectuing the process.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following User Says Thank You to krk969 For This Useful Post: