mirror of
https://github.com/YunoHost-Apps/borgserver_ynh.git
synced 2024-09-03 20:36:20 +02:00
[fix] ssh_user / public_key mess
This commit is contained in:
parent
955d3c5674
commit
2898fbe9ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue