mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
Disable creation of scmadmin with system parameter
This commit is contained in:
@@ -27,8 +27,11 @@ public class SetupContextListener implements ServletContextListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void contextInitialized(ServletContextEvent sce) {
|
public void contextInitialized(ServletContextEvent sce) {
|
||||||
|
String skipAdminCreation = System.getProperty("skipAdminCreation");
|
||||||
|
if (skipAdminCreation == null || "false".equalsIgnoreCase(skipAdminCreation)) {
|
||||||
administrationContext.runAsAdmin(SetupAction.class);
|
administrationContext.runAsAdmin(SetupAction.class);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void contextDestroyed(ServletContextEvent sce) {}
|
public void contextDestroyed(ServletContextEvent sce) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user