karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject karaf git commit: [KARAF-4058]ssh:sshd command isn't available
Date Mon, 12 Oct 2015 07:26:18 GMT
Repository: karaf
Updated Branches:
  refs/heads/master 287c23d40 -> d784a9bd1


[KARAF-4058]ssh:sshd command isn't available


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/d784a9bd
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/d784a9bd
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/d784a9bd

Branch: refs/heads/master
Commit: d784a9bd14ebcfedfa329bd5b5836389976246db
Parents: 287c23d
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Mon Oct 12 15:26:05 2015 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Mon Oct 12 15:26:05 2015 +0800

----------------------------------------------------------------------
 shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/d784a9bd/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
----------------------------------------------------------------------
diff --git a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
index 600407b..70a8899 100644
--- a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
+++ b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
@@ -109,6 +109,7 @@ public class Activator extends BaseActivator implements ManagedService
{
         sessionFactory.getRegistry().getService(Manager.class).register(SshAction.class);
         if (Boolean.parseBoolean(bundleContext.getProperty("karaf.startRemoteShell"))) {
             server = createSshServer(sessionFactory);
+            this.bundleContext.registerService(SshServer.class, server, null);
             if (server == null) {
                 return; // can result from bad specification.
             }


Mime
View raw message