-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
42 lines (33 loc) · 1.15 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
rm -f /etc/motd
cat >> /etc/motd << EOF
Author : guigui
Project : https://hub.docker.com/r/wang507811210/guigui/
Docker Image : wang507811210/guigui
Linux Version : $(cat /etc/redhat-release)
Kernel Version : $(uname -r)
Hostname : $(uname -n)
Enjoy your Docker-Linux Node !
EOF
echo "root:$ROOT_PASSWORD" | chpasswd
echo "Start Success !"
(/usr/bin/ss-server -s 0.0.0.0 \
-p $SS_PORT \
-k $SS_PASSWORD \
-m $SS_METHOD \
-t $SS_TIMEOUT \
$SS_FASTOPEN \
-d $SS_DNS \
-d $SS_DNS2 \
$SS_UDP_RELAY \
$SS_ARGS \
-f /tmp/ss.pid) &
(/usr/bin/server_linux_amd64 -t "127.0.0.1:$SS_PORT" \
-l ":$KCP_PORT" \
-key $KCP_PASSWORD \
--mode $KCP_MODE \
--crypt $KCP_ENCRYPT \
--mtu $KCP_MUT \
$KCP_NOCOMP \
$KCP_ARGS) &
/usr/sbin/sshd -D -e -o PermitRootLogin=yes