armbian.sh: Add debug output on failure

This commit is contained in:
Tobias Knöppler 2025-09-13 19:43:07 +02:00
parent 6ed2c17b06
commit 502a5c8be3

View File

@ -33,7 +33,12 @@ echo -e "\nInstalling NextCloudPi"
hostname -F /etc/hostname # fix 'sudo resolve host' errors
CODE_DIR="$(pwd)" DBG=x bash install.sh
CODE_DIR="$(pwd)" DBG=x bash install.sh || {
echo "SOMETHING WENT WRONG, EXITING..."
! [ -f /var/log/redis.log ] || cat /var/log/redis.log
sleep 120
exit 1
}
echo -e "\nPostinstall..."
run_app_unsafe post-inst.sh