Merge pull request #75 from hidrarga/skip_restart_services_build_image

Skip restart services when building an image
This commit is contained in:
Alexandre Aubin 2023-09-16 18:40:16 +02:00 committed by GitHub
commit 60588294f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -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"

View file

@ -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"

5
buster
View file

@ -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"