1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

Fix funky manifest argument fetching

This commit is contained in:
Alexandre Aubin 2020-05-23 23:21:34 +02:00 committed by GitHub
parent e98ea2ad74
commit e8352a457f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,30 +6,27 @@
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
app=$YNH_APP_INSTANCE_NAME
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE
app=$YNH_APP_INSTANCE_NAME
upload=$6
public_library=$7
upload=$YNH_APP_ARG_UPLOAD
public_library=$7YNH_APP_ARG_PUBLIC_LIBRARY
#if app is public, we assume library is public
if [ $is_public -eq 1 ]; then
public_library=1
fi
source _common.sh
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MANAGE SCRIPT FAILURE