mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
fix is_public
This commit is contained in:
parent
9f1bda1e7d
commit
5e5c8234cb
1 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
admin=$YNH_APP_ARG_ADMIN
|
||||
public=$YNH_APP_ARG_IS_PUBLIC
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
language=$YNH_APP_ARG_LANGUAGE
|
||||
upload=$YNH_APP_ARG_UPLOAD
|
||||
public_library=$YNH_APP_ARG_PUBLIC_LIBRARY
|
||||
|
@ -28,13 +28,13 @@ public_library=$YNH_APP_ARG_PUBLIC_LIBRARY
|
|||
source _common.sh
|
||||
|
||||
#if app is public, we assume library is public
|
||||
if [ $public -eq 1 ]; then
|
||||
if [ $is_public -eq 1 ]; then
|
||||
public_library=1
|
||||
fi
|
||||
|
||||
if [ $public -eq 1 ]; then #app is public, library is public
|
||||
if [ $is_public -eq 1 ]; then #app is public, library is public
|
||||
calibre_dir=$DOSSIER_MEDIA/share/eBook
|
||||
elif [ $public -eq 0 ] && [ $public_library -eq 1 ]; then #app is private, library is public
|
||||
elif [ $is_public -eq 0 ] && [ $public_library -eq 1 ]; then #app is private, library is public
|
||||
calibre_dir=$DOSSIER_MEDIA/share/eBook
|
||||
else #app is private, library is private
|
||||
calibre_dir=$DOSSIER_MEDIA/$admin/eBook
|
||||
|
|
Loading…
Add table
Reference in a new issue