YunoHost / package_linter

Linter for YunoHost applications packages
https://yunohost.org/#/packaging_apps
GNU Affero General Public License v3.0
17 stars 13 forks source link

False warning on yunohost service check #89

Closed Josue-T closed 3 years ago

Josue-T commented 3 years ago

Hello, I got this error

 ⓘ  Consider adding a change_url script to support changing where the app is installed
 ! Found some inconsistencies in the 'yunohost service add' commands between install, upgrade and restore:
   install : 
      ...None?...
   upgrade : 
      ...None?...
   restore : 
      yunohost service add uwsgi-app@$app --log /var/log/uwsgi/$app/$app.log

But this warning don't really make sense as I use the uwsgi helper which already do this for the install / upgrade / remove script.

For me there are 2 possibility:

Josue-T commented 3 years ago

Any new about this ?

alexAubin commented 3 years ago

Hmf yeah I forgot about this issue ... I don't really know how to fix that, clearly that's the limit of a naive static analysis of the script using greps and stuff ...

On the other hand it's also related to the fact that, generally speaking, the backup/restore script ain't really a symetric of install/remove, and by that I mean that in one case we do for example ynh_add_nginx_config, but in the backup/restore script we refer directly to the /etc/nginx/conf.d/$domain.d/$app.conf file instead of having for example an ynh_backup/restore_nginx_config

So same things happen here ... (except we're talking about a custom helper). Naively I'd say "create a ynh_restore_uwsgi helper and call that in the restore script instead of manually calling the corresponding 2~3 commands" ...

Josue-T commented 3 years ago

Thanks, OK, I'll do this.