From 0e8b340ece888871e68f41f436ba39cf57567135 Mon Sep 17 00:00:00 2001 From: openoms Date: Sun, 22 Sep 2019 14:35:51 +0100 Subject: [PATCH] electrs: set default settings for the SSL cert --- electrs/electrs_to_RaspiBlitz.sh | 36 +++++++++++++------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/electrs/electrs_to_RaspiBlitz.sh b/electrs/electrs_to_RaspiBlitz.sh index 92d328d..d310635 100644 --- a/electrs/electrs_to_RaspiBlitz.sh +++ b/electrs/electrs_to_RaspiBlitz.sh @@ -3,6 +3,12 @@ # https://github.com/romanz/electrs/blob/master/doc/usage.md +#cleanup +sudo systemctl stop electrs +sudo systemctl disable electrs +sudo rm -f /etc/systemd/system/electrs.service +sudo rm -f /home/electrs/.electrs/config.toml + echo "" echo "***" echo "Creating the electrs user" @@ -57,9 +63,7 @@ echo "" # generate setting file: https://github.com/romanz/electrs/issues/170#issuecomment-530080134 # https://github.com/romanz/electrs/blob/master/doc/usage.md#configuration-files-and-environment-variables -sudo rm -f /home/electrs/.electrs/config.toml sudo -u electrs mkdir /home/electrs/.electrs 2>/dev/null - touch /home/admin/config.toml chmod 600 /home/admin/config.toml || exit 1 cat > /home/admin/config.toml <