pikapython/docker/frpc.sh

11 lines
377 B
Bash
Raw Normal View History

2023-05-31 00:57:34 +08:00
service ssh start
2023-05-29 18:00:33 +08:00
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
2023-06-04 02:28:45 +08:00
echo "root:${SSH_PASSWARD}" | chpasswd
2023-05-29 18:00:33 +08:00
/usr/local/bin/frpc -c /etc/frpc.ini