summaryrefslogtreecommitdiff
path: root/sshd/includes/borg_restrictions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sshd/includes/borg_restrictions.sh')
-rw-r--r--sshd/includes/borg_restrictions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sshd/includes/borg_restrictions.sh b/sshd/includes/borg_restrictions.sh
new file mode 100644
index 0000000..684f8b1
--- /dev/null
+++ b/sshd/includes/borg_restrictions.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+cd /home/${USER}/
+borg serve --restrict-to-path /home/${USER}/
+