Fork me on GitHub

Changes for #1116

Description changed by root_hippyru (2018-07-10 20:33:58)

 1:  1:
-Currently it is rather non-trivial to use fluxbb when PUN_ROOT is read-only. For example, one may want to install fluxbb as root or under a read-only mount path as a part of system installation. But then one has a problem as fluxbb assumes that it can write to PUN_ROOT/config.php and PUN_ROOT/img/avatars and that it can remove PUN_ROOT/img/avatars+Currently it is rather non-trivial to use fluxbb when PUN_ROOT is read-only. For example, one may want to install fluxbb as root or under a read-only mount path as a part of system installation. But then one has a problem as fluxbb assumes that it can write to PUN_ROOT/config.php and PUN_ROOT/img/avatars and that it can remove PUN_ROOT/install.php
  
 One can work-around this by using symlinks or bind-mounts to point files and directories to a writable location. But this is problematic.  One can work-around this by using symlinks or bind-mounts to point files and directories to a writable location. But this is problematic. 
  
 First it complicates the updates as one needs to remember to restore symlinks after the update. Second it may lead to spurious alerts about non-writable directories during installation or a warning about install.php that should be deleted. Third it is impossible to share the same installation between different forums or forum running against slightly different config.php which is often useful during development or debugging. First it complicates the updates as one needs to remember to restore symlinks after the update. Second it may lead to spurious alerts about non-writable directories during installation or a warning about install.php that should be deleted. Third it is impossible to share the same installation between different forums or forum running against slightly different config.php which is often useful during development or debugging.
  
 So it would be nice to have an explicit support for read-only PUN_ROOT. So it would be nice to have an explicit support for read-only PUN_ROOT.