appstore-1panel/apps/frpc/0.58.1/scripts/init.sh
renovate[bot] 226dbe7d16
chore(deps): update snowdreamtech/frpc docker tag to v0.58.1 (#1509)
* chore(deps): update snowdreamtech/frpc docker tag to v0.58.1

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2024-05-31 18:43:25 +08:00

11 lines
461 B
Bash

#!/bin/bash
source ./.env
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