HelmCLI: support SOL018 Helm CLI ssh access
[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
new file mode 100644 (file)
index 0000000..006b121
--- /dev/null
@@ -0,0 +1,15 @@
+apt-get update && apt-get install ssh -y
+
+if [ -z "${HELM_USER_PASSWD}" ];
+then
+    HELM_USER_PASSWD=St8rlingX*
+fi
+useradd helm
+passwd helm << EOF
+${HELM_USER_PASSWD}
+${HELM_USER_PASSWD}
+EOF
+
+service ssh restart
+
+tail -f /dev/null
\ No newline at end of file