|
|
|
@ -22,7 +22,6 @@ import org.springframework.boot.SpringApplication; |
|
|
|
import org.springframework.context.ApplicationContext; |
|
|
|
import org.springframework.context.annotation.Profile; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.thingsboard.server.dao.resource.ResourceService; |
|
|
|
import org.thingsboard.server.service.component.ComponentDiscoveryService; |
|
|
|
import org.thingsboard.server.service.install.DatabaseEntitiesUpgradeService; |
|
|
|
import org.thingsboard.server.service.install.DatabaseTsUpgradeService; |
|
|
|
@ -90,9 +89,6 @@ public class ThingsboardInstallService { |
|
|
|
@Autowired(required = false) |
|
|
|
private TsLatestMigrateService latestMigrateService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ResourceService resourceService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private InstallScripts installScripts; |
|
|
|
|
|
|
|
@ -250,7 +246,7 @@ public class ThingsboardInstallService { |
|
|
|
databaseEntitiesUpgradeService.upgradeDatabase("3.4.4"); |
|
|
|
log.info("Updating system data..."); |
|
|
|
systemDataLoaderService.updateSystemWidgets(); |
|
|
|
installScripts.migrateLwm2mResources(); |
|
|
|
installScripts.loadSystemLwm2mResources(); |
|
|
|
break; |
|
|
|
//TODO update CacheCleanupService on the next version upgrade
|
|
|
|
default: |
|
|
|
@ -293,7 +289,7 @@ public class ThingsboardInstallService { |
|
|
|
systemDataLoaderService.createQueues(); |
|
|
|
// systemDataLoaderService.loadSystemPlugins();
|
|
|
|
// systemDataLoaderService.loadSystemRules();
|
|
|
|
installScripts.migrateLwm2mResources(); |
|
|
|
installScripts.loadSystemLwm2mResources(); |
|
|
|
|
|
|
|
if (loadDemo) { |
|
|
|
log.info("Loading demo data..."); |
|
|
|
|