Commit 2cc99cce authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(firewall, alias) make sure aliastables directory is there before writing geoip data

(cherry picked from commit b01e51bd)
parent 5e1697f8
...@@ -41,6 +41,10 @@ if (count($todo) > 0) { ...@@ -41,6 +41,10 @@ if (count($todo) > 0) {
} else { } else {
log_error("{$argv[0]}: GeoIP database doesn't need updating"); log_error("{$argv[0]}: GeoIP database doesn't need updating");
} }
// create alias target directly if it doesn't exists (mfs)
if (!file_exists("/var/db/aliastables/")) {
mkdir("/var/db/aliastables");
}
} }
log_error("{$argv[0]}: Starting URL table alias updates"); log_error("{$argv[0]}: Starting URL table alias updates");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment