diff --git a/bookworm b/bookworm index bd92ca3..0cffd46 100755 --- a/bookworm +++ b/bookworm @@ -109,7 +109,10 @@ function main() step register_debconf || die "Unable to insert new values into debconf database" step workarounds_because_sysadmin_sucks || die "Unable to run stupid workarounds" step install_yunohost_packages || die "Installation of Yunohost packages failed" - step restart_services || die "Error caught during services restart" + + if [[ "$BUILD_IMAGE" == "0" ]] ; then + step restart_services || die "Error caught during services restart" + fi if is_raspbian ; then step del_user_pi || die "Unable to delete user pi" diff --git a/bullseye b/bullseye index 8154fcf..8e3112b 100755 --- a/bullseye +++ b/bullseye @@ -109,7 +109,10 @@ function main() step register_debconf || die "Unable to insert new values into debconf database" step workarounds_because_sysadmin_sucks || die "Unable to run stupid workarounds" step install_yunohost_packages || die "Installation of Yunohost packages failed" - step restart_services || die "Error caught during services restart" + + if [[ "$BUILD_IMAGE" == "0" ]] ; then + step restart_services || die "Error caught during services restart" + fi if is_raspbian ; then step del_user_pi || die "Unable to delete user pi" diff --git a/buster b/buster index 28345b1..5ca052c 100755 --- a/buster +++ b/buster @@ -109,7 +109,10 @@ function main() step register_debconf || die "Unable to insert new values into debconf database" step workarounds_because_sysadmin_sucks || die "Unable to run stupid workarounds" step install_yunohost_packages || die "Installation of Yunohost packages failed" - step restart_services || die "Error caught during services restart" + + if [[ "$BUILD_IMAGE" == "0" ]] ; then + step restart_services || die "Error caught during services restart" + fi if is_raspbian ; then step del_user_pi || die "Unable to delete user pi"