Electrs - clean up after failed install (#4439)

This commit is contained in:
/rootzoll 2024-02-25 13:54:41 +01:00 committed by GitHub
parent 440b788bd5
commit 45c5c0ff57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -325,7 +325,12 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo "# user electrs exists already (codebase is installed)"
else
echo "# Installing codebase"
/home/admin/config.scripts/bonus.electrs.sh install || exit 1
/home/admin/config.scripts/bonus.electrs.sh install
if [ $? -ne 0 ]; then
echo "Install failed .. removing again."
/home/admin/config.scripts/bonus.electrs.sh uninstall
exit 1
fi
fi
echo