Skip to content

Commit

Permalink
refactor: improve installer
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Sep 26, 2024
1 parent f291ebf commit 68e9601
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,17 @@ else
fi

# Replace subdomain for the pulse api url
$sed_i_cmd "s/\$subdomain/$subdomain/g" $gaianet_base_dir/config.json
if [ "$(uname)" == "Darwin" ]; then
sed -i '' "s/subdomain = \".*\"/subdomain = \"$subdomain\"/g" $gaianet_base_dir/gaia-frp/frpc.toml
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sed -i "s/subdomain = \".*\"/subdomain = \"$subdomain\"/g" $gaianet_base_dir/gaia-frp/frpc.toml
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
error "For Windows users, please run this script in WSL."
exit 1
else
error "Only support Linux, MacOS and Windows(WSL)."
exit 1
fi

$sed_i_cmd "s/subdomain = \".*\"/subdomain = \"$subdomain\"/g" $gaianet_base_dir/gaia-frp/frpc.toml
$sed_i_cmd "s/serverAddr = \".*\"/serverAddr = \"$gaia_frp\"/g" $gaianet_base_dir/gaia-frp/frpc.toml
Expand Down

0 comments on commit 68e9601

Please sign in to comment.