appstore-1panel/apps/frpc/0.55.1/scripts/init.sh

11 lines
461 B
Bash
Raw Normal View History

2023-10-18 17:28:28 +08:00
#!/bin/bash
2023-10-19 11:01:03 +08:00
source ./.env
2023-10-18 17:28:28 +08:00
sed -i "s/serverAddr = \".*\"/serverAddr = \"${SERVER_ADDRESS}\"/" ./data/frpc.toml
sed -i "s/serverPort = .*$/serverPort = ${SERVER_PORT}/" ./data/frpc.toml
sed -i "s/webServer\.port = .*$/webServer.port = ${PANEL_APP_PORT_HTTP}/" ./data/frpc.toml
sed -i "s/webServer\.user = \".*\"/webServer.user = \"${USER_NAME}\"/" ./data/frpc.toml
sed -i "s/webServer\.password = \".*\"/webServer.password = \"${PASSWORD}\"/" ./data/frpc.toml