Skip to content

Commit afe43cd

Browse files
authored
perms (#253)
1 parent 3609508 commit afe43cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

deploy_knot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ fi
1616

1717
python3 generate_nn.py
1818
python3 makereverse.py
19-
chown root:knot *.zone
2019
cp -f *.zone /var/lib/knot/zones
20+
chown knot:knot /var/lib/knot/zones/*.zone
21+
chmod 664 /var/lib/knot/zones/*.zone
2122

2223
systemctl restart knot
2324
sleep 2

infra/ansible/roles/knot_authoritative/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
ansible.builtin.file:
6060
path: /var/lib/knot/zones
6161
state: directory
62-
owner: root
62+
owner: knot
6363
group: knot
6464
mode: "760"
6565

0 commit comments

Comments
 (0)