exec_borg.sh: fix known_hosts error message by passing the default known_hosts

This commit is contained in:
Ludwig Behm 2024-02-17 18:56:08 +01:00
parent b32d3b8aa6
commit 60e65af409

View file

@ -27,6 +27,7 @@ exec systemd-run --quiet --collect --unit=temp-borg-init-sandbox.service \
-p "CacheDirectoryMode=550" \ -p "CacheDirectoryMode=550" \
-p "PrivateTmp=yes" \ -p "PrivateTmp=yes" \
-p "ReadOnlyDirectories=/" \ -p "ReadOnlyDirectories=/" \
-p "ReadWritePaths=/root/.ssh/known_hosts" \
-p "EnvironmentFile=/etc/borg/$NAME/config.env" \ -p "EnvironmentFile=/etc/borg/$NAME/config.env" \
--setenv=BORG_PASSPHRASE_FD=0 \ --setenv=BORG_PASSPHRASE_FD=0 \
--setenv=BORG_BASE_DIR=/tmp/ \ --setenv=BORG_BASE_DIR=/tmp/ \