diff --git a/scripts/launch-frp.sh b/scripts/launch-frp.sh index 2c013b4..9ec6ac3 100644 --- a/scripts/launch-frp.sh +++ b/scripts/launch-frp.sh @@ -19,9 +19,9 @@ else echo "Starting FRPS..." fi -if [ ${FRP_WEBSERVER_ENABLED} ]; then - ln -s ${FRP_HOME}/conf-enabled/frps-webserver.toml ${FRP_HOME}/conf-available/frps-webserver.toml -else - rm -f ${FRP_HOME}/conf-enabled/frps-webserver.toml +rm -f ${FRP_HOME}/conf-enabled/frps-webserver.toml +if [ ${FRPS_WEBSERVER_ENABLED} ]; then + ln -s ${FRP_HOME}/conf-available/frps-webserver.toml ${FRP_HOME}/conf-enabled/frps-webserver.toml fi + exec ${FRP_HOME}/frps -c ${FRP_HOME}/frps-mua-entry-main.toml \ No newline at end of file