Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntax3rror404 committed Aug 24, 2024
1 parent f792c83 commit 41d5f12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

image:
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:138df7969731ee1b34b247ff7f49b44d887e6122e7171efb9c75ee509ea013a5
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:0579081ba89ffeda377518c26fbf9a6454caec2039a41dc9262372c7dce186f0
pullPolicy: IfNotPresent

service:
Expand Down
11 changes: 4 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#!/bin/bash

# Check if SSH host keys are available; if not, generate them
if [ ! -f /etc/ssh/keys/ssh_host_rsa_key ]; then
echo "Generating new SSH host keys."
# Ensure SSH host keys are available; generate them if they do not exist
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo "SSH host keys not found, generating new keys."
ssh-keygen -A
cp /etc/ssh/ssh_host_* /etc/ssh/keys/
chown -R root:root /etc/ssh/keys
chmod 600 /etc/ssh/keys/*
fi

# Start SSH service
/usr/sbin/sshd -D -f /etc/ssh/sshd_config &
/usr/sbin/sshd -D

# Check if any additional commands were passed and execute them
if [ "$#" -gt 0 ]; then
Expand Down

0 comments on commit 41d5f12

Please sign in to comment.