aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorGravatar steering72532026-04-08 03:50:25 +0200
committerGravatar steering72532026-04-08 03:57:04 +0200
commitd3ec864c134ebcf05ea82bad7f565a61bb418feb (patch)
tree1e88a0a7ff59ed461cbbe3ae9793e6b9cdb7f178 /install.sh
init
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..2315fd7
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,7 @@
+apt install git
+ln -s /opt/autopeer/sshd_config /etc/ssh/sshd_config.d/autopeer.conf
+addgroup autopeer
+adduser --disabled-password --comment '' new
+git -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" git clone git@git.dn42.dev:dn42/registry.git dn42-registry
+
+echo '47 * * * * root git -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" -C /opt/autopeer/dn42-registry pull' >>/etc/cron.d/autopeer