From 89e1a991fd7a62f901f7a7a8064433ddc67384a5 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sat, 24 Aug 2024 12:23:00 +0200 Subject: [PATCH] add PATH env var, and keep only one line in the authorized_keys file --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 75da2fb..d31b766 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -29,7 +29,7 @@ create_ssh_config() { if [[ -n "$quota" ]]; then extra="--storage-quota $quota" 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" mkdir -p "$ssh_dir"