Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the alarm exception about the alarmDefinition
[pti/o2.git]
/
charts
/
resources
/
scripts
/
init
/
o2_helmcli_start.sh
diff --git
a/charts/resources/scripts/init/o2_helmcli_start.sh
b/charts/resources/scripts/init/o2_helmcli_start.sh
index
135882d
..
c0bd9de
100644
(file)
--- a/
charts/resources/scripts/init/o2_helmcli_start.sh
+++ b/
charts/resources/scripts/init/o2_helmcli_start.sh
@@
-14,18
+14,17
@@
#!/bin/bash
#!/bin/bash
-ap
t-get update && apt-get install ssh -y
+ap
k add --no-cache openssh
if [ -z "${HELM_USER_PASSWD}" ];
then
HELM_USER_PASSWD=St8rlingX*
fi
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
${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