Skip to content

Commit f8c9546

Browse files
committed
feat: add remove ssh logic in start shell when runtime initial
1 parent d44b784 commit f8c9546

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
@@ -29,7 +29,7 @@ USER devbox
2929
COPY /OS/debian-ssh/project /home/devbox/project
3030
RUN sudo chown -R devbox:devbox /home/devbox/project && \
3131
sudo chmod -R 777 /home/devbox/project
32-
32+
3333
USER root
3434

3535
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

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 "${SEALOS_DEVBOX_INIT}" ] && [ "${SEALOS_DEVBOX_INIT}" == "true" ]; then
6+
if [ ! -z "${SEALOS_DEVBOX_NEED_INIT}" ] && [ "${SEALOS_DEVBOX_NEED_INIT}" == "true" ]; then
77
if [ -d "/home/devbox/.ssh" ]; then
88
cd /home/devbox/.ssh
99
rm -rf ./*

0 commit comments

Comments
 (0)