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 12:18:22 +02:00
parent 752038f1f8
commit b017f2a795

View file

@ -44,18 +44,18 @@ if [ -f $install_dir/.htconfig.php ]; then
ynh_secure_remove "$install_dir/.htconfig.php"
fi
if [ -f /etc/cron.d/$app ]; then
if [ -f "/etc/cron.d/$app" ]; then
ynh_secure_remove --file="/etc/cron.d/$app"
fi
# If admin_mail setting doesn't exist, create it
if [ -z $email ]; then
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
if [ -z "${language:-}" ]; then
language=en
ynh_app_setting_set --app=$app --key=language --value=$language
fi