mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-12 09:12:13 -04:00
optional pruning
This commit is contained in:
parent
b5badfc96a
commit
ddfa6e596a
3 changed files with 26 additions and 5 deletions
17
install
17
install
|
@ -241,10 +241,25 @@ configure_tls_port() {
|
|||
fi
|
||||
}
|
||||
|
||||
configure_pruning() {
|
||||
echo -e "${OkBullet}Configuring pruning..."
|
||||
while true; do
|
||||
read -r -e -p " Do you want to enable blockchain pruning? [y/n]: " yn
|
||||
case $yn in
|
||||
[Yy]*)
|
||||
sed -i "/MONEROD_EXTRA_PARAMS/s/$/ --prune-blockchain/g" .env
|
||||
break
|
||||
;;
|
||||
[Nn]*) break ;;
|
||||
*) echo " Please answer yes or no." ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
configure_cors() {
|
||||
echo -e "${OkBullet}Configuring CORS..."
|
||||
while true; do
|
||||
read -r -e -p " Do you want to enabe CORS headers so the node can be used in web apps? [y/n]: " yn
|
||||
read -r -e -p " Do you want to enable CORS headers so the node can be used in web apps? [y/n]: " yn
|
||||
case $yn in
|
||||
[Yy]*)
|
||||
sed -i '/#!cors/s/# //g' docker-compose.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue