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/