mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
Fix upgrade no admin
This commit is contained in:
parent
7bf4eeed28
commit
45185ea02e
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue