modules/darwin/common/reboot: command -> script

This commit is contained in:
zowoq 2023-08-13 12:55:48 +10:00
parent 066877dcda
commit 30fa9ad56e

View file

@ -1,7 +1,7 @@
{ {
# reboot every sunday between 00:00 and 06:00 # reboot every sunday between 00:00 and 06:00
launchd.daemons.reboot = { launchd.daemons.reboot = {
command = ''/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"''; script = ''/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"'';
serviceConfig.StartCalendarInterval = [ serviceConfig.StartCalendarInterval = [
{ {
Hour = 0; Hour = 0;