From 093d32f63ab6830086b8ed586c763939028668c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 13 Feb 2017 23:06:33 +0100 Subject: [PATCH] add helpers loading --- hooks/post_app_addaccess | 3 +++ hooks/post_user_create | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hooks/post_app_addaccess b/hooks/post_app_addaccess index a428267..9dadc98 100755 --- a/hooks/post_app_addaccess +++ b/hooks/post_app_addaccess @@ -4,6 +4,9 @@ app=$1 new_users=$2 app_path=/var/www/freshrss +# Source app helpers +. /usr/share/yunohost/helpers + if [[ "freshrss" = "$app" ]]; then diff --git a/hooks/post_user_create b/hooks/post_user_create index 864e0e7..29b5f4f 100755 --- a/hooks/post_user_create +++ b/hooks/post_user_create @@ -3,6 +3,9 @@ app_path=/var/www/freshrss myuser=$1 +# Source app helpers +. /usr/share/yunohost/helpers + user_token=$(ynh_string_random) $app_path/cli/create-user.php --user $myuser --language en --token $user_token --no-default-feeds sudo chown -R www-data: $app_path/data/users/$myuser/