diff --git a/conf/sudoers b/conf/sudoers index 2a20943..f700b8a 100644 --- a/conf/sudoers +++ b/conf/sudoers @@ -1,2 +1,2 @@ -{{ app }} ALL = (root) NOPASSWD: {{ install_dir }}/tools/yunohost/private/scripts/yunohost-user-info.sh -{{ app }} ALL = (root) NOPASSWD: {{ install_dir }}/tools/yunohost/private/scripts/yunohost-app-list.sh +__USER__ ALL = (root) NOPASSWD: __FINALPATH__/tools/yunohost/private/scripts/yunohost-user-info.sh +__USER__ ALL = (root) NOPASSWD: __FINALPATH__/tools/yunohost/private/scripts/yunohost-app-list.sh diff --git a/scripts/install b/scripts/install index d82d67d..b542fac 100755 --- a/scripts/install +++ b/scripts/install @@ -97,7 +97,7 @@ ynh_replace_string --match_string=");" --replace_string=" 'dataSources' => [\n' chmod +x $install_dir/tools/yunohost/private/scripts/*.sh # Add app user in sudoers to authorize to launch yunohost cli commands without password -ynh_add_jinja_config --template="sudoers" --destination="/etc/sudoers.d/$app" +ynh_add_config --template="sudoers" --destination="/etc/sudoers.d/$app" # At last, run the YunoHost app importer ynh_script_progression --message="Import YunoHost apps in bazar" --weight=2