mirror of
https://github.com/YunoHost-Apps/zerobin_ynh.git
synced 2024-09-03 18:06:01 +02:00
Fix empty is_public
This commit is contained in:
parent
a00e6930d0
commit
64b682cd8e
1 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,15 @@ if [ "$is_public" = "Yes" ]; then
|
||||||
elif [ "$is_public" = "No" ]; then
|
elif [ "$is_public" = "No" ]; then
|
||||||
ynh_app_setting_set $app is_public 0
|
ynh_app_setting_set $app is_public 0
|
||||||
is_public=0
|
is_public=0
|
||||||
|
elif [ -z "$is_public" ]; then
|
||||||
|
if grep --quiet "unprotected_uris" "/etc/yunohost/apps/$app/settings.yml"
|
||||||
|
then
|
||||||
|
ynh_app_setting_set $app is_public 1
|
||||||
|
is_public=1
|
||||||
|
else
|
||||||
|
ynh_app_setting_set $app is_public 0
|
||||||
|
is_public=0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If final_path doesn't exist, create it
|
# If final_path doesn't exist, create it
|
||||||
|
|
Loading…
Reference in a new issue