From 2898fbe9ab1261032efa4cb4e74e9fdfe88025bd Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 11 Apr 2021 19:09:49 +0200 Subject: [PATCH] [fix] ssh_user / public_key mess --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index bfb4482..e898cf3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,7 +56,7 @@ fi # Fix broken value ssh_user that mistakenly got replaced by the public key in previous versions... if echo "$ssh_user" | grep -q ' '; then - ssh_user=$(grep "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIadutuK2" /home/*/.ssh/authorized_keys | grep borg | cut -d/ -f3) + ssh_user=$(grep "$ssh_user" /home/*/.ssh/authorized_keys | grep borg | cut -d/ -f3) ynh_app_setting_set --app=$app --key=ssh_user --value="$ssh_user" fi