Skip to content

Commit 502a5c8

Browse files
committed
armbian.sh: Add debug output on failure
1 parent 6ed2c17 commit 502a5c8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build/armbian/armbian.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ echo -e "\nInstalling NextCloudPi"
3333

3434
hostname -F /etc/hostname # fix 'sudo resolve host' errors
3535

36-
CODE_DIR="$(pwd)" DBG=x bash install.sh
36+
CODE_DIR="$(pwd)" DBG=x bash install.sh || {
37+
echo "SOMETHING WENT WRONG, EXITING..."
38+
! [ -f /var/log/redis.log ] || cat /var/log/redis.log
39+
sleep 120
40+
exit 1
41+
}
3742

3843
echo -e "\nPostinstall..."
3944
run_app_unsafe post-inst.sh

0 commit comments

Comments
 (0)