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

12 lines
289 B
Text
Raw Permalink Normal View History

2021-04-17 18:39:02 +02:00
#!/usr/bin/env bash
2021-04-17 18:39:02 +02:00
set -a
source /usr/share/yunohost/helpers
2021-04-17 18:39:02 +02:00
app="${0//.\/50-}"
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
2021-04-17 18:39:02 +02:00
username=$1
2017-02-13 23:06:33 +01:00
2017-02-13 22:52:07 +01:00
user_token=$(ynh_string_random)
sudo -u $app $install_dir/cli/create-user.php --user $username --language en --token $user_token