Fix configuration path resolution and add setup script
This commit is contained in:
parent
2c05ae8b3c
commit
ff2296c786
4 changed files with 95 additions and 2 deletions
14
setup
Normal file
14
setup
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
$global_directory = $path = DIRECTORY_SEPARATOR . 'etc' . DIRECTORY_SEPARATOR . 'configlib';
|
||||
|
||||
//try creating the directory if it doesn't exist
|
||||
if(!file_exists($global_directory))
|
||||
{
|
||||
if(!mkdir($global_directory, 0777, true))
|
||||
{
|
||||
exit('Failed to create global directory');
|
||||
}
|
||||
|
||||
chmod($global_directory, 0777);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue