Skip to content
Snippets Groups Projects
Commit 29fd4d67 authored by Iain Bryson's avatar Iain Bryson
Browse files

Create privilege separation dir required by Ubuntu (apparently).

parent 3434c5e5
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,13 @@ RUN mv /tmp/parallel /usr/bin/ ...@@ -20,11 +20,13 @@ RUN mv /tmp/parallel /usr/bin/
COPY get-pdf.sh / COPY get-pdf.sh /
COPY mod_caption.rb / COPY mod_caption.rb /
COPY run-server.sh / COPY run-server.sh /
COPY create_sshd_privsep_dir.sh /
RUN ln -s /bin/bash /usr/bin/bash RUN ln -s /bin/bash /usr/bin/bash
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/#?LogLevel INFO/LogLevel VERBOSE/' /etc/ssh/sshd_config RUN sed -ri 's/#?LogLevel INFO/LogLevel VERBOSE/' /etc/ssh/sshd_config
RUN bash -c -l /create_sshd_privsep_dir.sh
## install RVM, Ruby, and Bundler ## install RVM, Ruby, and Bundler
#RUN gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 #RUN gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
......
#! /bin/bash
# Create the PrivSep empty dir if necessary
if [ ! -d /var/run/sshd ]; then
mkdir /var/run/sshd
chmod 0755 /var/run/sshd
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment