Fixes and updates to run out of container

This commit is contained in:
2018-01-15 17:18:16 +01:00
parent 3d0ea1adc7
commit e594676075
15 changed files with 2704 additions and 3442 deletions

View File

@@ -1,5 +1,6 @@
#!/usr/local/bin/php
#!/usr/bin/php
<?php
#ja
require_once 'functions.php';
require_once 'daemon.php';
@@ -25,6 +26,7 @@ foreach (explode("\n", trim(command('atq 2> /dev/null'))) as $sJob) {
/* Wake at sunrise, sleep at sunset */
$fWake = getHour(getWake($aTwilight));
$fSleep = getHour($sSleep = getSleep($aTwilight));
$sWake = $aTwilight[1];
$sSleep = $aTwilight[3];
System_Daemon::info(sprintf('Be awake between %s and %s', $sWake, $sSleep));