Skip to content

Commit

Permalink
chore(checkservices): Update the checkservices command that parses th…
Browse files Browse the repository at this point in the history
…e list of services to restart (#219)

This commit updates the checkservices command used to parse the list of services to restart after upgrades in order to adopt a more elegant way to retrieve the said list, matching the recent upstream changes made to checkservices.
See archlinux/contrib@2024071...2024072
  • Loading branch information
Antiz96 authored Jul 20, 2024
1 parent 408078e commit 4a0b4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ pacnew_files() {
# Definition of the restart_services function: Verify if any services require a post update restart
restart_services() {
if [ -n "${packages_updated}" ]; then
services=$(yes No | sudo checkservices -FP 2> /dev/null | grep ".service" | grep -v -e "dbus-broker.service" -e "systemd-logind.service" -e "gdm.service" -e "sddm.service" -e "lightdm.service" -e "lxdm.service" -e "slim.service" -e "xdm.service" -e "greetd.service" -e "nodm.service" -e "ly.service" -e "lemurs.service" | cut -f2 -d "'")
services=$(sudo checkservices -F -P -R -i gdm.service -i sddm.service -i lightdm.service -i lxdm.service -i slim.service -i xdm.service -i greetd.service -i nodm.service -i ly.service -i lemurs.service 2> /dev/null | grep ".service" | cut -f2 -d "'")
services_num=$(echo "${services}" | wc -l)

if [ -n "${services}" ]; then
Expand Down

0 comments on commit 4a0b4df

Please sign in to comment.