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

command ynh_exec_as absent #75

Closed moutonjr closed 4 years ago

moutonjr commented 4 years ago

Hi,

Using package_linter with freshly baked OpenProject App

I got:

[Install Script]
! [YEP-2.12] You should not need to use 'sudo', the script is being run as root. (If you need to run a command using a specific user, use 'ynh_exec_as')

But there doesn't seem to have such helper:

serv:~/git/package_linter$ . /usr/share/yunohost/helpers
serv:~/git/package_linter$ ynh_exec_as
-bash: ynh_exec_as : commande introuvable
maniackcrudelis commented 4 years ago

Bad communication, this helper is still experimental, you'll find it there: https://github.com/YunoHost-Apps/Experimental_helpers/blob/master/ynh_exec_as/ynh_exec_as

alexAubin commented 4 years ago

Package linter doesn't warn anymore if you "sudo -u someuser"