1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

Add is_public replacement and final_path addition

This commit is contained in:
Jean-Baptiste Holcroft 2017-10-23 16:34:18 +02:00
parent 536b7ca02d
commit 8be2013da5

View file

@ -40,6 +40,22 @@ then # Old version doesnt have is_public settings
ynh_app_setting_set "$app" is_public "$is_public"
fi
# Fix is_public as a boolean value
if [ "$is_public" = "Yes" ]; then
ynh_app_setting_set "$app" is_public 1
is_public=1
elif [ "$is_public" = "No" ]; then
ynh_app_setting_set "$app" is_public 0
is_public=0
fi
# If final_path doesn't exist, create it
if [[ -z "$final_path" ]]
then
final_path="/var/www/$app"
ynh_app_setting_set "$app" final_path "$final_path"
fi
#=================================================
# CHECK THE PATH
#=================================================