1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

add helpers loading

This commit is contained in:
Clément 2017-02-13 23:06:33 +01:00
parent fa3d251b67
commit 093d32f63a
2 changed files with 6 additions and 0 deletions

View file

@ -4,6 +4,9 @@ app=$1
new_users=$2 new_users=$2
app_path=/var/www/freshrss app_path=/var/www/freshrss
# Source app helpers
. /usr/share/yunohost/helpers
if [[ "freshrss" = "$app" ]]; if [[ "freshrss" = "$app" ]];
then then

View file

@ -3,6 +3,9 @@ app_path=/var/www/freshrss
myuser=$1 myuser=$1
# Source app helpers
. /usr/share/yunohost/helpers
user_token=$(ynh_string_random) user_token=$(ynh_string_random)
$app_path/cli/create-user.php --user $myuser --language en --token $user_token --no-default-feeds $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/ sudo chown -R www-data: $app_path/data/users/$myuser/