Juju-reboot hook tool works on ubuntu but not on centos

juju-reboot ends up calling at -f reboot.sh now, with reboot.sh being

#!/bin/bash
sleep 15
shutdown -r now

I don’t have CentOS but I imagine this is rather Debian-specific. Maybe it needs updating to call systemctl if systemd is pid 1.