View Single Post
Posts: 34 | Thanked: 2 times | Joined on Feb 2010
#5
Originally Posted by krk969 View Post
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.
Can you explain a little more clear how to create the postinstall file.
I removed the .ex and i added just before the end of the file your command:
Code:
#DEBHELPER#
chown -R user /home/opt/myapp

exit 0
if i run the command on the phone using sudo gain root and run again my process everything works fine

but when i install the package i still have the same problem.

should i add in the install rules the postinstall directory?


Thanks, flgor.