mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Don't set gravity database permissions
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
e04dc9d2bb
commit
8524aecfed
1 changed files with 0 additions and 5 deletions
|
@ -20,9 +20,6 @@ source "${regexconverter}"
|
||||||
|
|
||||||
basename="pihole"
|
basename="pihole"
|
||||||
PIHOLE_COMMAND="/usr/local/bin/${basename}"
|
PIHOLE_COMMAND="/usr/local/bin/${basename}"
|
||||||
DATABASE_USER="pihole"
|
|
||||||
DATABASE_GROUP="www-data"
|
|
||||||
DATABASE_PERMISSIONS="0660"
|
|
||||||
|
|
||||||
piholeDir="/etc/${basename}"
|
piholeDir="/etc/${basename}"
|
||||||
|
|
||||||
|
@ -85,8 +82,6 @@ fi
|
||||||
# Generate new sqlite3 file from schema template
|
# Generate new sqlite3 file from schema template
|
||||||
generate_gravity_database() {
|
generate_gravity_database() {
|
||||||
sqlite3 "${gravityDBfile}" < "${gravityDBschema}"
|
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
|
# Import domains from file and store them in the specified database table
|
||||||
|
|
Loading…
Reference in a new issue