Skip to content

Commit 27bb590

Browse files
committed
fix: /var/run/sshd already exists
1 parent 3693a1b commit 27bb590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ RUN sed -i /etc/ssh/sshd_config \
9999
-e 's/#PasswordAuthentication.*/PasswordAuthentication no/' \
100100
-e 's/#SyslogFacility.*/SyslogFacility AUTH/' \
101101
-e 's/#LogLevel.*/LogLevel INFO/' && \
102-
mkdir /var/run/sshd && \
102+
mkdir -p /var/run/sshd && \
103103
sed -i /etc/pam.d/sshd \
104104
-e 's/\(session\s*\)required\(\s*pam_loginuid.so\)/\1optional\2/' \
105105
-e '/pam_motd/s/^/#/'

0 commit comments

Comments
 (0)