1

Move PackageKit termination earlier in execution

This commit is contained in:
Jessie Hildebrandt 2023-06-02 15:22:54 -04:00
parent 30fa6406d4
commit de452fa201

View File

@ -109,6 +109,9 @@ if [ "${EUID}" == 0 ]; then
exit 1 exit 1
fi fi
# Ensure PackageKit is not running so that it doesn't interrupt us
sudo systemctl stop packagekit
# Ensure "dialog" is installed # Ensure "dialog" is installed
echo "Installing dialog utility..." echo "Installing dialog utility..."
sudo zypper --non-interactive in dialog sudo zypper --non-interactive in dialog
@ -300,9 +303,6 @@ fi
echo "Setting up packages..." echo "Setting up packages..."
# Kill PackageKit so that it doesn't interrupt us
sudo systemctl stop packagekit
sudo zypper --non-interactive install ${PATTERNS[@]} sudo zypper --non-interactive install ${PATTERNS[@]}
if [[ "${detected_features[@]}" == *"Mobile"* ]]; then if [[ "${detected_features[@]}" == *"Mobile"* ]]; then
sudo zypper --non-interactive install patterns-desktop-mobile sudo zypper --non-interactive install patterns-desktop-mobile