diff --git a/home.admin/config.scripts/bonus.mempool.sh b/home.admin/config.scripts/bonus.mempool.sh index a080b59b3..16f63d5f4 100755 --- a/home.admin/config.scripts/bonus.mempool.sh +++ b/home.admin/config.scripts/bonus.mempool.sh @@ -130,7 +130,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then sudo mariadb -e "CREATE DATABASE mempool;" sudo mariadb -e "GRANT ALL PRIVILEGES ON mempool.* TO 'mempool' IDENTIFIED BY 'mempool';" sudo mariadb -e "FLUSH PRIVILEGES;" - mariadb -umempool -pmempool mempool < mariadb-structure.sql + if [ -f "mariadb-structure.sql" ]; then + mariadb -umempool -pmempool mempool < mariadb-structure.sql + fi echo "# npm install for mempool explorer (frontend)" diff --git a/home.admin/config.scripts/cl.hsmtool.sh b/home.admin/config.scripts/cl.hsmtool.sh index d0b5eb629..1ca8362bf 100644 --- a/home.admin/config.scripts/cl.hsmtool.sh +++ b/home.admin/config.scripts/cl.hsmtool.sh @@ -295,7 +295,13 @@ elif [ "$1" = "unlock" ]; then # fail elif [ $attempt -eq 12 ];then echo "# Failed to unlock the ${netprefix}lightningd wallet - giving up after 1 minute" - echo "# Check: sudo journalctl -u ${netprefix}lightningd" + echo + echo "# The last lines of the ${netprefix}lightningd logs ('sudo tail -n 5 /home/bitcoin/.lightning/${CLNETWORK}/cl.log'):" + sudo tail -n 5 /home/bitcoin/.lightning/${CLNETWORK}/cl.log + echo + echo "# The last lines of the ${netprefix}lightningd journal ('sudo journalctl -u ${netprefix}lightningd'):" + sudo journalctl -n 5 -u ${netprefix}lightningd + echo exit 1 fi echo "# Waiting to unlock wallet ... "