Commit 3aa0270c authored by voxdemonix's avatar voxdemonix 💬

HealthCheck.php - add check executation permission on data folder (needed when...

HealthCheck.php - add check executation permission on data folder (needed when webdav reconstruct file)
parent d6116ee0
<?php
/* SIMPLE HEALTH CHECK FOR LOAD BALANCER
/* SIMPLE HEALTH CHECK FOR LOAD BALANCER -- Version::1.0
Send http 204 if working
Send http 501 if PHP version is bad
Send http 502 if software (in $CONFIG["check_process_list"] list) is not running
......@@ -48,7 +48,7 @@ try {
header('HTTP/1.1 503'); exit;
}
/* check data folder */
if (!is_file($CONFIG["datadirectory"]."/index.html") || !is_writable($CONFIG["datadirectory"]."/")){
if (!is_file($CONFIG["datadirectory"]."/index.html") || !is_writable($CONFIG["datadirectory"]."/") || !is_executable($CONFIG["datadirectory"]."/")){
header('HTTP/1.1 504'); exit;
}
/* check cache */
......
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