bug fix (Thu May 4 15:39:40 CST 2023)

This commit is contained in:
Dict Xiong 2023-05-04 15:39:40 +08:00
parent d775ea5fe4
commit 4df9913fce
2 changed files with 2 additions and 3 deletions

View File

@ -11,9 +11,7 @@ RUN cd /opt && git clone https://git.nasp.ob.ac.cn/NASP/registry \
&& ./registry/scripts/jumpserver_deploy.sh \
&& curl dotfiles.cn | bash -s - -l -u root \
&& sed -i 's?root:x:0:0:root:/root:/bin/ash?root:x:0:0:root:/root:/bin/zsh?' /etc/passwd \
&& sed -i 's?ssh:x:1000:1000:jumpserver user ssh:/home/ssh:/bin/ash?ssh:x:1000:1000:jumpserver user ssh:/home/ssh:/bin/bash?' /etc/passwd \
&& mkdir -p /etc/udhcpc && echo "RESOLV_CONF=no" > /etc/udhcpc/udhcpc.conf \
&& echo "nameserver 192.168.16.118" > /etc/resolv.conf
&& sed -i 's?ssh:x:1000:1000:jumpserver user ssh:/home/ssh:/bin/ash?ssh:x:1000:1000:jumpserver user ssh:/home/ssh:/bin/bash?' /etc/passwd
EXPOSE 22
ENTRYPOINT ["/etc/startup.sh"]

View File

@ -1,6 +1,7 @@
#!/bin/bash
set -e
echo "nameserver 192.168.16.118" > /etc/resolv.conf
test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -A
crond
/usr/sbin/sshd