pikapython/docker/frpc.sh
2023-06-04 02:28:45 +08:00

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