From cdcfb91ea5d221bee5956b06c0cc3585abaa9fec Mon Sep 17 00:00:00 2001 From: HgO Date: Sat, 26 Aug 2023 14:38:27 +0200 Subject: [PATCH] skip restart services when building image --- bookworm | 5 ++++- bullseye | 5 ++++- buster | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) 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"