mirror of
https://github.com/YunoHost-Apps/webtrees_ynh.git
synced 2024-09-03 18:26:37 +02:00
Fix upgrade missing vars
This commit is contained in:
parent
6f27c348e7
commit
fe507604ae
1 changed files with 6 additions and 6 deletions
|
@ -13,27 +13,27 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
# Migrate manifest questions
|
# Migrate manifest questions
|
||||||
if [ -z "$admin_username" ]; then
|
if [ -z "${admin_username:-}" ]; then
|
||||||
admin_username="$username"
|
admin_username="$username"
|
||||||
ynh_app_setting_set --app="$app" --key="admin_username" --value="$admin_username"
|
ynh_app_setting_set --app="$app" --key="admin_username" --value="$admin_username"
|
||||||
fi
|
fi
|
||||||
if [ -n "$username" ]; then
|
if [ -n "${username:-}" ]; then
|
||||||
ynh_app_setting_delete --app="$app" --key="username"
|
ynh_app_setting_delete --app="$app" --key="username"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$admin_name" ]; then
|
if [ -z "${admin_name:-}" ]; then
|
||||||
admin_name="$name"
|
admin_name="$name"
|
||||||
ynh_app_setting_set --app="$app" --key="admin_name" --value="$admin_name"
|
ynh_app_setting_set --app="$app" --key="admin_name" --value="$admin_name"
|
||||||
fi
|
fi
|
||||||
if [ -n "$name" ]; then
|
if [ -n "${name:-}" ]; then
|
||||||
ynh_app_setting_delete --app="$app" --key="name"
|
ynh_app_setting_delete --app="$app" --key="name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$admin_email" ]; then
|
if [ -z "${admin_email:-}" ]; then
|
||||||
admin_email="$email"
|
admin_email="$email"
|
||||||
ynh_app_setting_set --app="$app" --key="admin_email" --value="$admin_email"
|
ynh_app_setting_set --app="$app" --key="admin_email" --value="$admin_email"
|
||||||
fi
|
fi
|
||||||
if [ -n "$email" ]; then
|
if [ -n "${email:-}" ]; then
|
||||||
ynh_app_setting_delete --app="$app" --key="email"
|
ynh_app_setting_delete --app="$app" --key="email"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue