|
|
@ -136,8 +136,6 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ |
|
|
|
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& mkdir -p /project \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
@ -170,8 +168,6 @@ EOF |
|
|
|
|
|
|
|
RUN mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ |
|
|
|
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
|
&& mkdir -p /project \ |
|
|
@ -253,8 +249,6 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ |
|
|
|
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& mkdir -p /project \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
@ -287,8 +281,6 @@ else |
|
|
|
|
|
|
|
RUN mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ |
|
|
|
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ |
|
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
|
&& mkdir -p /etc/opt \ |
|
|
|
&& mkdir -p /project \ |
|
|
|