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