9 lines
326 B
Bash
Executable File
9 lines
326 B
Bash
Executable File
cat /ssh/key.pub > /root/.ssh/authorized_keys
|
|
ssh-keygen -A
|
|
exec /usr/sbin/sshd -D -e "$@" &
|
|
sed "s/ss:[0-9]\+/ss:$SSPORT/" /nginx_default.conf > change_port
|
|
cat change_port > /nginx_default.conf
|
|
sed "s/ss:[0-9]\+/ss:$SSPORT/" /etc/nginx/nginx.conf > change_port
|
|
cat change_port > /etc/nginx/nginx.conf
|
|
nginx -g "daemon off;"
|