1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Make sure $update exists before upgrading

This commit is contained in:
tituspijean 2022-03-25 10:01:40 +01:00 committed by GitHub
parent b467fd9d8c
commit 5b722e8811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,12 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public ynh_app_setting_delete --app=$app --key=is_public
fi fi
# If update doesn't exist, create it
if [ -z "$update" ]; then
update=1
ynh_app_setting_set --app=$app --key=update --value=$update
fi
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
#================================================= #=================================================