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

13 lines
289 B
Text
Raw Normal View History

#!/bin/bash
app=APPNAMETOCHANGE
2017-03-06 13:47:59 +01:00
app_path=/var/www/$app
myuser=$1
2017-02-13 23:06:33 +01:00
# Source app helpers
. /usr/share/yunohost/helpers
2017-02-13 22:52:07 +01:00
user_token=$(ynh_string_random)
2019-03-31 19:01:27 +02:00
sudo $app_path/cli/create-user.php --user $myuser --language en --token $user_token
2016-09-01 08:56:14 +02:00
sudo chown -R www-data: $app_path/data/users/$myuser/