1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yeswiki_ynh.git synced 2024-09-03 18:05:56 +02:00

fix(install): use ynh_add_config

This commit is contained in:
mrflos 2024-05-24 15:46:25 +02:00
parent 8398ac71d6
commit b767f20fef
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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