1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/domoticz_ynh.git synced 2024-09-03 18:26:17 +02:00

Fix upgrade

This commit is contained in:
yalh76 2021-08-05 20:06:45 +02:00
parent b0832486c2
commit d291d44ebb

View file

@ -76,21 +76,6 @@ if [ -f /etc/cron.d/$app ]; then
rm /etc/cron.d/$app
fi
# Fix is_public as a boolean value
if [ "$is_public" = "Yes" ]; then
ynh_app_setting_set --app=$app --key=is_public --value=1
is_public=1
elif [ "$is_public" = "No" ]; then
ynh_app_setting_set --app=$app --key=is_public --value=0
is_public=0
#Previous domoticz version did not have public/private settings
elif [ -z "$is_public" ]; then
ynh_app_setting_set --app=$app --key=is_public --value=1
is_public=1
ynh_print_warn --message="Application was set as public in the previous version,meaning it's available without authentication."
ynh_print_warn --message="if you require to set it as private, please use the authorization config panel in Users/Manage Groups and permissions"
fi
#Store OS and machine (to be used in restore script)
if [ -z "$current_OS" ]; then
ynh_app_setting_set --app=$app --key=OS --value=$OS