mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-11 02:45:43 -04:00
update install script to create default configs
This commit is contained in:
parent
0cb0adc169
commit
3c1f40e0d8
1 changed files with 12 additions and 0 deletions
12
install
12
install
|
@ -174,6 +174,17 @@ install_xmrsh() {
|
|||
echo -e "${Ok}"
|
||||
}
|
||||
|
||||
configure_defaults() {
|
||||
echo -e "${OkBullet}Setting up default configs (.env and docker-compose.yml)...${Off}"
|
||||
if [ ! -f "docker-compose.yml" ]; then
|
||||
cp docker-compose-example.yml docker-compose.yml
|
||||
fi
|
||||
if [ ! -f ".env" ]; then
|
||||
cp env-example .env
|
||||
fi
|
||||
echo -e "${Ok}"
|
||||
}
|
||||
|
||||
configure_network() {
|
||||
echo -e "${OkBullet}Select the desired node network (mainnet, testnet, stagenet)"
|
||||
PS3=":: Enter a number: "
|
||||
|
@ -461,6 +472,7 @@ if [ $DOCKER_INSTALLED = true ] && [ $DOCKER_COMPOSE_INSTALLED = false ]; then
|
|||
fi
|
||||
|
||||
install_xmrsh
|
||||
configure_defaults
|
||||
configure_network
|
||||
configure_tls_domain
|
||||
configure_tls_port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue