Files
pmaports-rtwo/extra-repos/systemd/systemd-services/systemd-services.trigger
T
Oliver Smith e67ae3ef4f systemd/systemd-services: make shellcheck happy (MR 5070) (MR 5563)
Fix for:
  In systemd-services.trigger line 14:
      systemctl $cmd $service
                ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                     ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
2025-01-10 13:02:31 +01:00

18 lines
535 B
Bash

#!/bin/sh
# Because these service files are installed with install_if, they might
# get installed after some other package has tried to enable them.
# we provide an "rc-update" binary which wraps systemctl, it also makes
# a list of services that failed to enable so we can try them again
# now that everything has been installed.
if [ ! -e /run/rc-update.failed ]; then
exit 0
fi
while read -r cmd service; do
echo "=> $cmd $service"
systemctl "$cmd" "$service"
done < /run/rc-update.failed
rm -f /run/rc-update.failed