forked from leftypol/leftypol
install.php: better permission error reporting
This commit is contained in:
parent
87899a0988
commit
945e14d404
1 changed files with 8 additions and 3 deletions
|
@ -3,10 +3,15 @@
|
||||||
// Installation/upgrade file
|
// Installation/upgrade file
|
||||||
define('VERSION', '5.1.3');
|
define('VERSION', '5.1.3');
|
||||||
|
|
||||||
if (!is_writable('inc/instance-config.php') || !is_writable('inc/')) {
|
if (!is_writable('inc/instance-config.php')) {
|
||||||
|
if (file_exists('inc/instance-config.php')) {
|
||||||
|
print('install.php does not have permission to write to /inc/instance-config.php, without permission the installer cannot continue');
|
||||||
|
exit();
|
||||||
|
} else if (!is_writable('inc/')) {
|
||||||
print('install.php does not have permission to write to /inc/, without permission the installer cannot continue');
|
print('install.php does not have permission to write to /inc/, without permission the installer cannot continue');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
require 'inc/bootstrap.php';
|
require 'inc/bootstrap.php';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue