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

Fix path to borg executable in authorized_keys file

This commit is contained in:
Salamandar 2024-08-20 13:03:57 +02:00
parent 954857339f
commit d175b5f17c

View file

@ -25,7 +25,7 @@ create_ssh_config() {
if [[ -n "$quota" ]]; then if [[ -n "$quota" ]]; then
extra="--storage-quota $quota" extra="--storage-quota $quota"
fi fi
command="borg serve $extra --restrict-to-repository $repository" command="$install_dir/venv/bin/borg serve $extra --restrict-to-repository $repository"
ssh_opts="command=\"$command\",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc" ssh_opts="command=\"$command\",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc"
mkdir -p "$ssh_dir" mkdir -p "$ssh_dir"