mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
12 lines
324 B
Bash
Executable file
12 lines
324 B
Bash
Executable file
#!/bin/bash
|
|
|
|
db_user=freshrss
|
|
db_name=freshrss
|
|
db_pwd=$(sudo yunohost app setting freshrss mysqlpwd)
|
|
app_path=/var/www/freshrss
|
|
|
|
myuser=$1
|
|
|
|
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/
|