mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
multi instance yet ?
This commit is contained in:
parent
3f293467dc
commit
067f6b0957
3 changed files with 7 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
app=$1
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
new_users=$2
|
||||
app_path=/var/www/freshrss
|
||||
app_path=/var/www/$app
|
||||
|
||||
# Source app helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
app_path=/var/www/freshrss
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
app_path=/var/www/$app
|
||||
|
||||
myuser=$1
|
||||
|
||||
|
@ -7,5 +8,5 @@ myuser=$1
|
|||
. /usr/share/yunohost/helpers
|
||||
|
||||
user_token=$(ynh_string_random)
|
||||
$app_path/cli/create-user.php --user $myuser --language en --token $user_token --no-default-feeds
|
||||
sudo $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/
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
app_path=/var/www/freshrss
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
app_path=/var/www/$app
|
||||
|
||||
myuser=$1
|
||||
$app_path/cli/delete-user.php --user $myuser
|
||||
|
|
Loading…
Add table
Reference in a new issue