mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Fix multiinstance trigger when provisionning
This commit is contained in:
parent
dce91854bb
commit
96d54565e0
2 changed files with 7 additions and 4 deletions
|
@ -2,13 +2,14 @@
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
app=$1
|
app="${0//.\/50-}"
|
||||||
|
app_trigger=$1
|
||||||
users=$2
|
users=$2
|
||||||
permission=$3
|
permission=$3
|
||||||
group=$4
|
group=$4
|
||||||
|
|
||||||
#Visitor group has been revomed => app is public
|
#Visitor group has been revomed => app is public
|
||||||
if [ $(echo "$group" | grep visitors) ] && [ $permission = "main" ]; then
|
if [ $(echo "$group" | grep visitors) ] && [ $permission = "main" ] && [ $app = $app_trigger ]; then
|
||||||
|
|
||||||
#loading settings from the app
|
#loading settings from the app
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
|
|
|
@ -2,13 +2,15 @@
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
app=$1
|
app="${0//.\/50-}"
|
||||||
|
app_trigger=$1
|
||||||
users=$2
|
users=$2
|
||||||
permission=$3
|
permission=$3
|
||||||
group=$4
|
group=$4
|
||||||
|
|
||||||
#Visitor group has been revomed => app is private
|
#Visitor group has been revomed => app is private
|
||||||
if [ $(echo "$group" | grep visitors) ] && [ $permission = "main" ]; then
|
#app & app_trigger to be used for multiinstance
|
||||||
|
if [ $(echo "$group" | grep visitors) ] && [ $permission = "main" ] && [ $app = $app_trigger ]; then
|
||||||
|
|
||||||
#loading settings from the app
|
#loading settings from the app
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
|
|
Loading…
Add table
Reference in a new issue