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

Update upgrade

This commit is contained in:
Éric Gaspar 2023-08-21 13:49:33 +02:00
parent e2e92190bb
commit 9154d4a55f

View file

@ -9,13 +9,6 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
ynh_script_progression --message="Loading installation settings..." --weight=1
timezone=$(cat /etc/timezone)
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
#================================================= #=================================================
@ -38,18 +31,6 @@ if [ -f "/etc/cron.d/$app" ]; then
ynh_secure_remove --file="/etc/cron.d/$app" ynh_secure_remove --file="/etc/cron.d/$app"
fi fi
# If admin_mail setting doesn't exist, create it
if [ -z "${email:-}" ]; then
email=$(ynh_user_get_info --username=$admin --key=mail)
ynh_app_setting_set --app=$app --key=email --value=$email
fi
# If language setting doesn't exist, create it
if [ -z "${language:-}" ]; then
language=en
ynh_app_setting_set --app=$app --key=language --value=$language
fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================