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

add PATH env var, and keep only one line in the authorized_keys file

This commit is contained in:
Kayou 2024-08-24 12:23:00 +02:00 committed by GitHub
parent 1fcd463aec
commit 89e1a991fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ create_ssh_config() {
if [[ -n "$quota" ]]; then if [[ -n "$quota" ]]; then
extra="--storage-quota $quota" extra="--storage-quota $quota"
fi fi
command="$install_dir/venv/bin/borg serve $extra --restrict-to-repository $repository" command="PATH=$install_dir/venv/bin/:$PATH 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"