summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 34a5fd8..b1851d6 100755
--- a/install.sh
+++ b/install.sh
@@ -20,6 +20,8 @@ umask 0007
mkdir /opt/autopeer/db
echo 'CREATE TABLE peers (name, asn, ipll, endpoint, port, pubkey, creator_ip, creator_name, creator_date, deleted, 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