1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/hooks/post_user_create
XoD 0bb9233eed fix final_path in hooks post_user_create
This fix this error after user creation
sudo: /cli/create-user.php: command not found
Échec de l’exécution du script : /etc/yunohost/hooks.d/post_user_create/50-freshrss
2021-08-13 20:48:31 +02:00

11 lines
286 B
Bash
Executable file

#!/usr/bin/env bash
set -a
source /usr/share/yunohost/helpers
app="${0//.\/50-}"
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
username=$1
user_token=$(ynh_string_random)
sudo -u $app $final_path/cli/create-user.php --user $username --language en --token $user_token