optional pruning

This commit is contained in:
vdo 2022-06-06 21:13:47 +01:00
parent b5badfc96a
commit ddfa6e596a
3 changed files with 26 additions and 5 deletions

17
install
View file

@ -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