salva container

Este commit está contenido en:
Your Name
2020-08-02 23:19:50 +00:00
padre 5b0246df8a
commit 8e593e54cb
Se han modificado 2 ficheros con 59 adiciones y 0 borrados

Ver fichero

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
apt update && apt upgrade -y && apt install -y openssh-server openssh-sftp-server sudo && apt clean
useradd -ms /bin/bash -p "" salva
adduser salva sudo
echo '%sudo ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/sudo
echo 'PermitRootLogin no' > /etc/ssh/sshd_config
echo 'PermitEmptyPasswords yes' >> /etc/ssh/sshd_config
service ssh start
/docker-entrypoint.sh apache2-foreground