From de452fa2015a9b8f74acf39a4f19f5d7e98bc396 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Fri, 2 Jun 2023 15:22:54 -0400 Subject: [PATCH] Move PackageKit termination earlier in execution --- opensuse-personalizer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opensuse-personalizer.sh b/opensuse-personalizer.sh index c518f6a..1101b35 100755 --- a/opensuse-personalizer.sh +++ b/opensuse-personalizer.sh @@ -109,6 +109,9 @@ if [ "${EUID}" == 0 ]; then exit 1 fi +# Ensure PackageKit is not running so that it doesn't interrupt us +sudo systemctl stop packagekit + # Ensure "dialog" is installed echo "Installing dialog utility..." sudo zypper --non-interactive in dialog @@ -300,9 +303,6 @@ fi echo "Setting up packages..." -# Kill PackageKit so that it doesn't interrupt us -sudo systemctl stop packagekit - sudo zypper --non-interactive install ${PATTERNS[@]} if [[ "${detected_features[@]}" == *"Mobile"* ]]; then sudo zypper --non-interactive install patterns-desktop-mobile