Skip to content

Commit

Permalink
Fix regression of bugfix 6959
Browse files Browse the repository at this point in the history
The 10setup script terminates with a non-zero exit code at module
installation time.

The shell AND causes a non-zero exit code if the service is not enabled.
  • Loading branch information
DavidePrincipi committed Jun 28, 2024
1 parent 2e6ee1e commit 8988434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imageroot/update-module.d/10setup
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ mkdir -p dnsmasq.d dnsmasq_hosts.d
install -m 644 ../dnsmasq.service "/etc/systemd/system/${MODULE_ID}.service"
systemctl daemon-reload
# Restart the service, if the module has been configured:
systemctl -q is-enabled "${MODULE_ID}" && systemctl restart -T "${MODULE_ID}"
if systemctl -q is-enabled "${MODULE_ID}"; then
systemctl restart -T "${MODULE_ID}"
fi

0 comments on commit 8988434

Please sign in to comment.