From db45db77a26e7880cb2e0ab34c6a917bdbf4db9f Mon Sep 17 00:00:00 2001 From: ljf Date: Fri, 13 Jan 2017 00:37:52 +0100 Subject: [PATCH] [fix] On rpi reboot before postinstall --- install_yunohost | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_yunohost b/install_yunohost index d578770..47f4df4 100755 --- a/install_yunohost +++ b/install_yunohost @@ -513,6 +513,11 @@ if [[ "$BUILD_IMAGE" == "1" ]] ; then fi fi +if is_raspbian ; then + # Reboot should be done before postinstall to be able to run iptables rules + reboot +fi + if ! step post_install ; then die "Post-installation failed" 13 fi @@ -520,9 +525,4 @@ fi # Success ! success - -if is_raspbian ; then - reboot -fi - exit 0