module/gerrit: add switch in cli for openssh
diff --git a/module/gerrit/scheme.sh b/module/gerrit/scheme.sh
index 8f0f8f8..15cd6c0 100644
--- a/module/gerrit/scheme.sh
+++ b/module/gerrit/scheme.sh
@@ -428,9 +428,11 @@
local -r running_services=\\
\"sudo -E docker-compose ps --services --filter \\\"status=running\\\"\"
local -r host_container=\"\$2\"
-
local -r host_user=\"\$1\"
- if [ \"\$host_user\" = \"root\" ]; then
+
+ if [ \"\$host_container\" = \"${_GERRIT_DKRC_CONTAINER_/gerrit/openssh}\" ]; then
+ local -r keys_f=\"/config/.ssh/authorized_keys\"
+ elif [ \"\$host_user\" = \"root\" ]; then
local -r keys_f=\"/\$host_user/.ssh/authorized_keys\"
else
local -r keys_f=\"/home/\$host_user/.ssh/authorized_keys\"