diff --git a/htdocs/admin/system/security.php b/htdocs/admin/system/security.php
index 90bb35320c0..751ed819e29 100644
--- a/htdocs/admin/system/security.php
+++ b/htdocs/admin/system/security.php
@@ -241,14 +241,41 @@ print '
';
print '
';
$installlock = DOL_DATA_ROOT.'/install.lock';
+$upgradeunlock = DOL_DATA_ROOT.'/upgrade.unlock';
+$installmoduleslock = DOL_DATA_ROOT.'/installmodules.lock';
+
+// Is install (upgrade) locked
print ''.$langs->trans("DolibarrSetup").': ';
if (file_exists($installlock)) {
- print img_picto('', 'tick').' '.$langs->trans("InstallAndUpgradeLockedBy", $installlock);
+ if (file_exists($upgradeunlock)) {
+ print img_picto('', 'tick').' '.$langs->trans("InstallLockedBy", $installlock);
+ } else {
+ print img_picto('', 'tick').' '.$langs->trans("InstallAndUpgradeLockedBy", $installlock);
+ }
} else {
print img_warning().' '.$langs->trans("WarningLockFileDoesNotExists", DOL_DATA_ROOT);
}
print '
';
+// Is upgrade unlocked
+if (file_exists($installlock)) { // If install not locked, no need to show this.
+ if (file_exists($upgradeunlock)) {
+ print ''.$langs->trans("DolibarrUpgrade").': ';
+ print img_warning().' '.$langs->trans("UpgradeHasBeenUnlocked", $upgradeunlock);
+ print '
';
+ }
+}
+
+// Is addon install locked ?
+print ''.$langs->trans("DolibarrAddonInstall").': ';
+if (file_exists($installmoduleslock)) {
+ print img_picto('', 'tick').' '.$langs->trans("InstallAndUpgradeLockedBy", $installmoduleslock);
+} else {
+ print $langs->trans("InstallOfAddonIsNotBlocked", DOL_DATA_ROOT);
+}
+print '
';
+
+
// File conf.php
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index 0214b73292d..484e207e347 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -51,6 +51,8 @@ ClientSortingCharset=Client collation
WarningModuleNotActive=Module %s must be enabled
WarningOnlyPermissionOfActivatedModules=Only permissions related to activated modules are shown here. You can activate other modules in the Home->Setup->Modules page.
DolibarrSetup=Dolibarr install or upgrade
+DolibarrUpgrade=Dolibarr upgrade
+DolibarrAddonInstall=Installation of Addon/External modules (uploaded or generated)
InternalUsers=Internal users
ExternalUsers=External users
UserInterface=User interface
@@ -2264,6 +2266,8 @@ DatabasePasswordNotObfuscated=Database password is NOT obfuscated in conf file
APIsAreNotEnabled=APIs modules are not enabled
YouShouldSetThisToOff=You should set this to 0 or off
InstallAndUpgradeLockedBy=Install and upgrades are locked by the file %s
+InstallLockedBy=Install/Reinstall is locked by the file %s
+InstallOfAddonIsNotBlocked=Installations of addons are not locked. Create a file installmodules.lock into directory %s to block installations of external addons/modules.
OldImplementation=Old implementation
PDF_SHOW_LINK_TO_ONLINE_PAYMENT=If some online payment modules are enabled (Paypal, Stripe, ...), add a link on the PDF to make the online payment
DashboardDisableGlobal=Disable globally all the thumbs of open objects