dockerfiles/nasp-jumpserver/startup.sh

9 lines
149 B
Bash
Raw Normal View History

2023-05-04 14:17:03 +08:00
#!/bin/bash
set -e
2023-05-04 15:39:40 +08:00
echo "nameserver 192.168.16.118" > /etc/resolv.conf
2023-05-04 15:10:29 +08:00
test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -A
2023-05-04 14:17:03 +08:00
crond
2023-05-04 15:10:29 +08:00
/usr/sbin/sshd
bash