Skip to content

Commit a8f0c50

Browse files
committed
fix: 修复路径可能创建失败的问题
1 parent b16166a commit a8f0c50

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dockerfiles/Dockerfile_almalinux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/motd || t
1717
RUN echo "--by https://t.me/spiritlhl" >> /etc/motd || true
1818
RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/banner || true
1919
RUN echo "--by https://t.me/spiritlhl" >> /etc/banner || true
20-
RUN mkdir /var/run/sshd
20+
RUN mkdir /var/run/sshd || true
2121
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
2222
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
2323
sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config

dockerfiles/Dockerfile_debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/motd || t
1717
RUN echo "--by https://t.me/spiritlhl" >> /etc/motd || true
1818
RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/banner || true
1919
RUN echo "--by https://t.me/spiritlhl" >> /etc/banner || true
20-
RUN mkdir /var/run/sshd
20+
RUN mkdir /var/run/sshd || true
2121
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
2222
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
2323
sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config

dockerfiles/Dockerfile_openeuler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/motd || t
1717
RUN echo "--by https://t.me/spiritlhl" >> /etc/motd || true
1818
RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/banner || true
1919
RUN echo "--by https://t.me/spiritlhl" >> /etc/banner || true
20-
RUN mkdir /var/run/sshd
20+
RUN mkdir /var/run/sshd || true
2121
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
2222
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
2323
sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config

dockerfiles/Dockerfile_ubuntu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/motd || t
1717
RUN echo "--by https://t.me/spiritlhl" >> /etc/motd || true
1818
RUN echo "Related repo https://github.com/oneclickvirt/docker" >> /etc/banner || true
1919
RUN echo "--by https://t.me/spiritlhl" >> /etc/banner || true
20-
RUN mkdir /var/run/sshd
20+
RUN mkdir /var/run/sshd || true
2121
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
2222
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
2323
sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config

0 commit comments

Comments
 (0)