diff options
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 7 |
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 |
