From 8524aecfed5eb4e3984fe938d2049c47976741c7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 26 Apr 2019 17:56:11 +0200 Subject: [PATCH] Don't set gravity database permissions Signed-off-by: DL6ER --- gravity.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gravity.sh b/gravity.sh index 3543ac15..98db04b8 100755 --- a/gravity.sh +++ b/gravity.sh @@ -20,9 +20,6 @@ source "${regexconverter}" basename="pihole" PIHOLE_COMMAND="/usr/local/bin/${basename}" -DATABASE_USER="pihole" -DATABASE_GROUP="www-data" -DATABASE_PERMISSIONS="0660" piholeDir="/etc/${basename}" @@ -85,8 +82,6 @@ fi # Generate new sqlite3 file from schema template generate_gravity_database() { sqlite3 "${gravityDBfile}" < "${gravityDBschema}" - chown ${DATABASE_USER}:${DATABASE_GROUP} "${piholeDir}" "${gravityDBfile}" - chmod ${DATABASE_PERMISSIONS} "${piholeDir}" "${gravityDBfile}" } # Import domains from file and store them in the specified database table