Fix Knot permissions

This commit is contained in:
Miraty 2022-05-03 19:18:09 +02:00
parent 235e5a976e
commit 74c04acadc
4 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ useradd -U -r -s /usr/sbin/nologin sftpgo
# Set proper permissions
chmod 770 /var/lib/knot
chmod -R g+w /var/lib/knot/confdb
chown -R knot:knot /var/lib/knot/confdb
chmod -R u=rwX,g=rwX,o= /var/lib/knot/confdb
usermod -aG knot php-niver
chown -R knot:knot /var/log/knot
@ -43,9 +43,7 @@ chown sftpgo:sftpgo /srv/php/niver/auth.log
chmod -R u=rw,g=rw,o= /srv/php/niver/auth.log
# Load configuration in Knot database
systemctl stop knot
sudo -u knot knotc conf-import /etc/knot/knot.conf
systemctl start knot
export PHP_INI=/etc/php/php.ini

View File

@ -0,0 +1,2 @@
d /run/knot 0755 knot knot - -
d /var/lib/knot 0770 knot knot - -