Commit 2f07283876743dcdda6918483402feb1ff911a8d

Authored by Volodymyr Babak
1 parent fdd12630

Removed upload of demo edge rule chains

@@ -259,18 +259,12 @@ public class InstallScripts { @@ -259,18 +259,12 @@ public class InstallScripts {
259 try { 259 try {
260 createDefaultRuleChains(tenantId); 260 createDefaultRuleChains(tenantId);
261 createDefaultRuleChain(tenantId, "Thermostat"); 261 createDefaultRuleChain(tenantId, "Thermostat");
262 - loadEdgeDemoRuleChains(tenantId);  
263 } catch (Exception e) { 262 } catch (Exception e) {
264 log.error("Unable to load dashboard from json", e); 263 log.error("Unable to load dashboard from json", e);
265 throw new RuntimeException("Unable to load dashboard from json", e); 264 throw new RuntimeException("Unable to load dashboard from json", e);
266 } 265 }
267 } 266 }
268 267
269 - private void loadEdgeDemoRuleChains(TenantId tenantId) throws Exception {  
270 - Path edgeDemoRuleChainsDir = Paths.get(getDataDir(), JSON_DIR, DEMO_DIR, EDGE_MANAGEMENT, RULE_CHAINS_DIR);  
271 - loadRuleChainsFromPath(tenantId, edgeDemoRuleChainsDir);  
272 - }  
273 -  
274 public void createOAuth2Templates() throws Exception { 268 public void createOAuth2Templates() throws Exception {
275 Path oauth2ConfigTemplatesDir = Paths.get(getDataDir(), JSON_DIR, SYSTEM_DIR, OAUTH2_CONFIG_TEMPLATES_DIR); 269 Path oauth2ConfigTemplatesDir = Paths.get(getDataDir(), JSON_DIR, SYSTEM_DIR, OAUTH2_CONFIG_TEMPLATES_DIR);
276 try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(oauth2ConfigTemplatesDir, path -> path.toString().endsWith(JSON_EXT))) { 270 try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(oauth2ConfigTemplatesDir, path -> path.toString().endsWith(JSON_EXT))) {