mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-23 07:18:07 +00:00
Use files.gravity_tmp as temporary directory for the intermediate lists (#5504)
This commit is contained in:
commit
03637e9081
@ -41,6 +41,7 @@ VPNList="/etc/openvpn/ipp.txt"
|
|||||||
|
|
||||||
piholeGitDir="/etc/.pihole"
|
piholeGitDir="/etc/.pihole"
|
||||||
GRAVITYDB=$(getFTLConfigValue files.gravity)
|
GRAVITYDB=$(getFTLConfigValue files.gravity)
|
||||||
|
GRAVITY_TMPDIR=$(getFTLConfigValue files.gravity_tmp)
|
||||||
gravityDBschema="${piholeGitDir}/advanced/Templates/gravity.db.sql"
|
gravityDBschema="${piholeGitDir}/advanced/Templates/gravity.db.sql"
|
||||||
gravityDBcopy="${piholeGitDir}/advanced/Templates/gravity_copy.sql"
|
gravityDBcopy="${piholeGitDir}/advanced/Templates/gravity_copy.sql"
|
||||||
|
|
||||||
@ -48,9 +49,7 @@ domainsExtension="domains"
|
|||||||
curl_connect_timeout=10
|
curl_connect_timeout=10
|
||||||
|
|
||||||
|
|
||||||
# Set up tmp dir variable in case it's not configured
|
# Check gravity temp directory
|
||||||
: "${GRAVITY_TMPDIR:=/tmp}"
|
|
||||||
|
|
||||||
if [ ! -d "${GRAVITY_TMPDIR}" ] || [ ! -w "${GRAVITY_TMPDIR}" ]; then
|
if [ ! -d "${GRAVITY_TMPDIR}" ] || [ ! -w "${GRAVITY_TMPDIR}" ]; then
|
||||||
echo -e " ${COL_LIGHT_RED}Gravity temporary directory does not exist or is not a writeable directory, falling back to /tmp. ${COL_NC}"
|
echo -e " ${COL_LIGHT_RED}Gravity temporary directory does not exist or is not a writeable directory, falling back to /tmp. ${COL_NC}"
|
||||||
GRAVITY_TMPDIR="/tmp"
|
GRAVITY_TMPDIR="/tmp"
|
||||||
|
Loading…
Reference in New Issue
Block a user