YunoHost-Apps / my_webapp_ynh

Custom Web app with SFTP access
GNU General Public License v3.0
48 stars 39 forks source link

Refactoring #16

Closed maniackcrudelis closed 6 years ago

maniackcrudelis commented 6 years ago

Problem

Solution

PR Status

Work finished. Package_check, basic tests and upgrade from last version OK.
Could be reviewed and tested.

Validation

~Medium decision~

Since this PR has been rerouted from master to testing. It passes to a minor decision.

JimboJoe commented 6 years ago

Upgrade from previous version failed; php fpm log:

2017/08/30 19:30:53 [error] 8485#0: *98213 connect() to unix:/var/run/php5-fpm-my_webapp.sock failed (111: Connection refused) while connecting to upstream, client: etc.

As webapp1 user already exists, nothing is done during upgrade. But existing webapp1 user belongs to www-data group, as opposed to newly created webapp1 users that belong to newly created webapp1 group. As php fpm configuration file points to webapp1 user / webapp1 group, my user had insufficient rights. I had to do:


groupadd webapp1
usermod -g webapp1 webapp1
JimboJoe commented 6 years ago

Bump on the "upgrade from last version" issue...

JimboJoe commented 6 years ago

Will be merged in testing in 3 days.