hosting the jump creating users; finetuning
All checks were successful
Build OCI Containers / Build Containers (push) Successful in 1m40s

This commit is contained in:
Stefan Harmuth 2024-06-02 13:36:11 +02:00
parent e2bc0a9ba9
commit 91c3584ee7
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ COPY supervisord.conf /etc/supervisord.conf
RUN apt-get update && \ RUN apt-get update && \
apt-get -y upgrade && \ apt-get -y upgrade && \
apt-get -y --purge autoremove && \ apt-get -y --purge autoremove && \
apt-get -y install wget python3 python3-venv irssi neomutt ssh supervisor tmux && \ apt-get -y install wget python3 python3-venv irssi neomutt ssh supervisor tmux vim && \
apt-get -y clean && \ apt-get -y clean && \
touch /var/log/supervisord.log && \ touch /var/log/supervisord.log && \
mkdir /var/run/sshd && \ mkdir /var/run/sshd && \

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
for user in /jumphost_users/*; do for user in /jumphost_users/*; do
uid=`cat /jumphost_users/${user} uid=`cat /jumphost_users/${user}`
/usr/sbin/groupadd -g ${uid} ${user} /usr/sbin/groupadd -g ${uid} ${user}
/usr/sbin/useradd -d /home/${user} -m -s /bin/bash -u ${uid} -g ${uid} ${user} /usr/sbin/useradd -d /home/${user} -m -s /bin/bash -u ${uid} -g ${uid} ${user}
done done