Skip to content

Commit 5a23020

Browse files
committed
feat: add remove ssh logic in start shell when runtime initial
1 parent 91172d4 commit 5a23020

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OS/debian-ssh/12.6/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN chmod +x /usr/start/startup.sh && \
2424
mkdir -p /home/devbox/.ssh && \
2525
chown -R devbox:devbox /home/devbox/.ssh && \
2626
chmod -R 770 /home/devbox/.ssh
27-
27+
2828
USER devbox
2929
COPY /OS/debian-ssh/project /home/devbox/project
3030
RUN sudo chown -R devbox:devbox /home/devbox/project && \

script/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Define the password file location
44
PASSWORD_FILE="/usr/start/user_password.txt"
55

6-
if [ ! -z "${RUNTIME_INITIAL}" ]; then
6+
if [ ! -z "${SEALOS_DEVBOX_INIT}" ] && [ "${SEALOS_DEVBOX_INIT}" == "true" ]; then
77
if [ -d "/home/devbox/.ssh" ]; then
88
cd /home/devbox/.ssh
99
rm -rf ./*

0 commit comments

Comments
 (0)