aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rw-r--r--deploy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100644
index 0000000..a788b18
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BRANCH="main"
+git --git-dir=/srv/git/netbird.git archive --format=tar $BRANCH | tar -x -C /root/netbird/
+chmod +x /root/netbird/backup.sh
+chmod +x /root/netbird/update.sh
+chmod +x /root/netbird/deploy.sh \ No newline at end of file