Skip to content

Commit

Permalink
Startup hook should implement SlingRepositoryInitializer to propagate
Browse files Browse the repository at this point in the history
exceptions properly

This closes #545 partially
  • Loading branch information
kwin committed Jan 26, 2021
1 parent a9a1f23 commit cfe2b35
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public enum StartupHookActivation {
@Reference(policyOption = ReferencePolicyOption.GREEDY)
private AcInstallationService acInstallationService;

private boolean isCompositeNodeStore;
private Config.StartupHookActivation activationMode;

@Activate
Expand Down Expand Up @@ -115,7 +114,7 @@ private void copyAcHistoryToOrFromApps(SlingRepository repository, boolean isClo
try {
session = repository.loginService(null, null);

if(isCompositeNodeStore) {
if(RuntimeHelper.isCompositeNodeStore(session)) {
LOG.info("Restoring history from /apps to /var");

if(session.nodeExists(HistoryUtils.AC_HISTORY_PATH_IN_APPS)) {
Expand Down

0 comments on commit cfe2b35

Please sign in to comment.