mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-14 19:07:39 +01:00
docker: handle secrets.php
This commit is contained in:
parent
eb01768191
commit
79183ae8e6
@ -30,6 +30,11 @@ chgrp www-data /var/www
|
||||
# Initialize an empty robots.txt with the default if it doesn't exist.
|
||||
touch /var/www/robots.txt
|
||||
|
||||
# Initialize an empty writable secrests.php with the default if it doesn't exist.
|
||||
touch /var/www/inc/secrets.php
|
||||
chown www-data /var/www/inc/secrets.php
|
||||
chgrp www-data /var/www/inc/secrets.php
|
||||
|
||||
# Link the cache and tmp files directory.
|
||||
ln -nfs /var/tmp/leftypol /var/www/tmp
|
||||
|
||||
|
@ -5,8 +5,8 @@ define('VERSION', '5.1.4');
|
||||
require 'inc/bootstrap.php';
|
||||
loadConfig();
|
||||
|
||||
if (!is_writable('inc/secrets.php')) {
|
||||
echo 'install.php does not have permission to write to /inc/secrets.php, without permission the installer cannot continue';
|
||||
if (!is_writable('inc/secrets.php') || !is_writable('inc/')) {
|
||||
echo 'install.php does not have permission to write to /inc/secrets.php and/or /inc/, without permission the installer cannot continue';
|
||||
exit();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user