From bee1b2df3816af103afb2c0c934811d184bdfa7d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 7 Apr 2021 03:52:14 +0200 Subject: [PATCH] Fix stupid typo that overwrote the ssh_user setting ... --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 40f12ef..e94e027 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,7 +50,7 @@ if [ -f "/etc/yunohost/hooks.d/backup/17-data_home" ]; then fi if echo "$ssh_user" | grep -v ' '; then - ynh_app_setting_set --app=$app --key=ssh_user --value="$(grep -Po 'no-user-rc \K.*$' /home/$ssh_user/.ssh/authorized_keys)" + ynh_app_setting_set --app=$app --key=public_key --value="$(grep -Po 'no-user-rc \K.*$' /home/$ssh_user/.ssh/authorized_keys)" fi #=================================================