Lock on upgrade

Hi all,
is possible to lock an ojs site during updating operations?

By Administration area is easy to close all users session but:

  • how can I prevent their log in during the upgrade?
  • how to prevent to show publicly the installation page during the operations?

Is there/is programmed a tool to do that?

Thanks,
Alfredo

1 Like

Hi @Alfredo_Cosco,

There’s no e.g. configuration option to do this, but since all requests pass through the main index.php wrapper, you can simply edit that script and insert near the top something like…

echo "<h1>This site is currently down for maintenance. Please come back later.</h1>";
exit;

Regards,
Alec Smecher
Public Knowledge Project Team

2 Likes