What app is this about, and its version: my_webapp 1.0~ynh21
What YunoHost version are you running: 12.1.32.1
What type of hardware are you using: Virtual machine
Describe your issue
I’d like to host my personal webpage on my ynh instance, and I’d like to reproduce the workflow I use for my academic webpage. In my university, I have a Unix account on the univ server, and my home contains a directory “public_html”, whose content is published as my static website.
My workflow is as follows: I have a bare git repo in my home, with a post receive hook that checkout the content of the repo in public_html. This way, whenever I push changes from my laptop to my univ remote, the website is updated.
While my_webapp provides a similar folder which gets published, it is not in my home, and the access rights are setup differently.
It seems that, in order to write in /var/www/mywebapp/www, I should basically su - mywebapp. However, the “user” mywebapp cannot write in its own home (/var/www/mywebapp), so I cannot set it up to use git (to checkout the repo in my home folder).
Is there a good reason to keep those access rights this way ? Or is there a clever way to chown /var/www/mywebapp with my actual user account ?
Share relevant logs or error messages
Not applicable