Commit f4a4a93b authored by haemmer's avatar haemmer

Added a default value for metadata lock file in case it is not configured

parent 294be66b
......@@ -11,6 +11,18 @@
// Init log file
openlog("SWITCHwayf.readMetadata.php", LOG_PID | LOG_PERROR, LOG_LOCAL0);
// Set configuration defaults
// Set lock file
if (!isset($metadataLockFile)){
if(substr($_SERVER['PATH'],0,1) == '/'){
$metadataLockFile = '/tmp/wayf_metadata.lock';
} else {
$metadataLockFile = 'C:\windows\TEMP';
}
}
// Make sure this script is not accessed directly
if(isRunViaCLI()){
// Run in cli mode.
......
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