X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Fresources%2Fscripts%2Finit%2Fo2_helmcli_start.sh;h=c0bd9de00d97fccaf32d9e9dd62f3aa9e3f72583;hb=76a5a4a59a09dab75b7584c787c14d89f7a0a180;hp=135882d658fc558856969efb7e12560053c8165c;hpb=7e21b8d5ceabc857812194f7a865066e4f13ad85;p=pti%2Fo2.git diff --git a/charts/resources/scripts/init/o2_helmcli_start.sh b/charts/resources/scripts/init/o2_helmcli_start.sh index 135882d..c0bd9de 100644 --- a/charts/resources/scripts/init/o2_helmcli_start.sh +++ b/charts/resources/scripts/init/o2_helmcli_start.sh @@ -14,18 +14,17 @@ #!/bin/bash -apt-get update && apt-get install ssh -y +apk add --no-cache openssh if [ -z "${HELM_USER_PASSWD}" ]; then HELM_USER_PASSWD=St8rlingX* fi -useradd helm -passwd helm << EOF + +adduser helm << EOF ${HELM_USER_PASSWD} ${HELM_USER_PASSWD} EOF -service ssh restart - -tail -f /dev/null \ No newline at end of file +ssh-keygen -A +exec /usr/sbin/sshd -D -e "$@" \ No newline at end of file