mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
11 lines
377 B
Bash
11 lines
377 B
Bash
service ssh start
|
|
sed -i "s|%FRPC_SERVER_ADDR%|${FRPC_SERVER_ADDR}|" /etc/frpc.ini && \
|
|
sed -i "s|%FRPC_SERVER_PORT%|${FRPC_SERVER_PORT}|" /etc/frpc.ini && \
|
|
sed -i "s|%FRPC_REMOTE_PORT%|${FRPC_REMOTE_PORT}|" /etc/frpc.ini && \
|
|
sed -i "s|%FRPC_TOKEN%|${FRPC_TOKEN}|" /etc/frpc.ini
|
|
cat /etc/frpc.ini
|
|
|
|
echo "root:${SSH_PASSWARD}" | chpasswd
|
|
|
|
/usr/local/bin/frpc -c /etc/frpc.ini
|