1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgserver_ynh.git synced 2024-09-03 20:36:20 +02:00

Fix stupid typo that overwrote the ssh_user setting ...

This commit is contained in:
Alexandre Aubin 2021-04-07 03:52:14 +02:00 committed by ljf (zamentur)
parent daf24c8ec3
commit bee1b2df38

View file

@ -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
#=================================================