mirror of
https://github.com/YunoHost-Apps/minidlna_ynh.git
synced 2024-09-03 19:36:34 +02:00
Fix upgrade (missing variables)
This commit is contained in:
parent
a1114fb771
commit
10cd46e104
1 changed files with 4 additions and 4 deletions
|
@ -21,25 +21,25 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# If overwrite_settings doesn't exist, create it
|
||||
if [ -z "$overwrite_settings" ]; then
|
||||
if [ -z "${overwrite_settings:-}" ]; then
|
||||
overwrite_settings=1
|
||||
ynh_app_setting_set --app=$app --key=overwrite_settings --value=$overwrite_settings
|
||||
fi
|
||||
|
||||
# If root_container doesn't exist, create it
|
||||
if [ -z "$root_container" ]; then
|
||||
if [ -z "${root_container:-}" ]; then
|
||||
root_container="B"
|
||||
ynh_app_setting_set --app=$app --key=root_container --value=$root_container
|
||||
fi
|
||||
|
||||
# If friendly_name doesn't exist, create it
|
||||
if [ -z "$friendly_name" ]; then
|
||||
if [ -z "${friendly_name:-}" ]; then
|
||||
friendly_name="YunoHost DLNA"
|
||||
ynh_app_setting_set --app=$app --key=friendly_name --value=$friendly_name
|
||||
fi
|
||||
|
||||
# If version exists, remove the backport source list, as it's no longer used.
|
||||
if [ -n "$version" ]; then
|
||||
if [ -n "${version:-}" ]; then
|
||||
ynh_secure_remove --file="/etc/apt/sources.list.d/minidlna.list"
|
||||
ynh_app_setting_delete --app=$app --key=version
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue