From 669d00ec9ac6c4fb89a233ff251a03bc0b4e1343 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Thu, 9 Apr 2026 23:01:44 +0000 Subject: fix install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 install.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 96f1b4e..f5a7f4f --- a/install.sh +++ b/install.sh @@ -7,6 +7,7 @@ read -p "Press enter once you've done that..." apt install git wireguard-tools ln -s /opt/autopeer/sshd_config /etc/ssh/sshd_config.d/autopeer.conf +systemctl reload ssh 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 /opt/autopeer/dn42-registry @@ -14,11 +15,10 @@ git -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" git clone git@git.dn42 echo '47 * * * * root git -c merge.verifysignatures=false -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" -C /opt/autopeer/dn42-registry pull' >>/etc/cron.d/autopeer echo '*/5 * * * * root /opt/autopeer/cronjob.py' >>/etc/cron.d/autopeer +umask 0007 mkdir /opt/autopeer/db -echo 'CREATE TABLE peers (name, asn, ipll, endpoint, port, pubkey, creator_ip, creator_name, creator_date, primary key (name, asn));' | python -m sqlite3 /opt/autopeer/db/sqlite3.db +echo 'CREATE TABLE peers (name, asn, ipll, endpoint, port, pubkey, creator_ip, creator_name, creator_date, primary key (name, asn));' | python3 -m sqlite3 /opt/autopeer/db/sqlite3.db chgrp -R autopeer /opt/autopeer/db/ -chmod 770 /opt/autopeer/db/ -chmod 660 /opt/autopeer/db/sqlite3.db umask 0077 wg genkey >/etc/wireguard/privkey -- cgit v1.3.1-10-gc9f91