forked from leftypol/leftypol
docker: handle secrets.php
This commit is contained in:
parent
745bd5fc5d
commit
ffaad8dbb8
|
@ -30,6 +30,11 @@ chgrp www-data /var/www
|
||||||
# Initialize an empty robots.txt with the default if it doesn't exist.
|
# Initialize an empty robots.txt with the default if it doesn't exist.
|
||||||
touch /var/www/robots.txt
|
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.
|
# Link the cache and tmp files directory.
|
||||||
ln -nfs /var/tmp/leftypol /var/www/tmp
|
ln -nfs /var/tmp/leftypol /var/www/tmp
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Installation/upgrade file
|
// Installation/upgrade file
|
||||||
define('VERSION', '5.1.3');
|
define('VERSION', '5.1.3');
|
||||||
|
|
||||||
if (fopen('inc/instance-config.php' , 'a') === false) {
|
if (!is_writable('inc/instance-config.php') || !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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user