appstore-1panel/apps/frps/0.53.2/scripts/init.sh
renovate[bot] ba86f8d34e
chore(deps): update snowdreamtech/frps docker tag to v0.53.2 (#744)
* chore(deps): update snowdreamtech/frps docker tag to v0.53.2

* 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>
2023-12-22 18:43:40 +08:00

12 lines
386 B
Bash

#!/bin/bash
source ./.env
sed -i "s/bindPort = .*$/bindPort = ${PANEL_APP_PORT_SERVICE}/" ./data/frps.toml
sed -i "s/webServer\.port = .*$/webServer.port = ${PANEL_APP_PORT_HTTP}/" ./data/frps.toml
sed -i "s/webServer\.user = \".*\"/webServer.user = \"${USER_NAME}\"/" ./data/frps.toml
sed -i "s/webServer\.password = \".*\"/webServer.password = \"${PASSWORD}\"/" ./data/frps.toml