1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 16:26:13 +00:00

Fix upgrade no admin

This commit is contained in:
Félix Piédallu 2024-02-29 18:13:21 +01:00
parent 7bf4eeed28
commit 45185ea02e

View file

@ -8,8 +8,6 @@ source _common.sh
source ynh_install_ruby__2
source /usr/share/yunohost/helpers
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
@ -58,6 +56,13 @@ fi
ynh_secure_remove "$install_dir/Experimental_helpers"
if [[ -z "${admin:-}" ]]; then
admin=""
ynh_app_setting_set --app="$app" --key=admin --value="$admin"
fi
admin_mail=$(ynh_user_get_info --username="$admin" --key=mail)
#=================================================
# INSTALL DEPENDENCIES
#=================================================