mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#559 Display crontab -e variant at installer
This commit is contained in:
parent
c690aba051
commit
5b25a42e60
@ -969,7 +969,7 @@ if ($currentStep == 9 and count($systemCheckError) == 0) {
|
||||
|
||||
$displayPHPUser = (isset($_SERVER['USER'])) ? $_SERVER['USER'] : 'changeToPHPUser';
|
||||
|
||||
$displayToUser .= "<div class='alert alert-success'><h4>{$languageObject->cron_internal}</h4>
|
||||
$displayToUser .= "<div class='alert alert-success'><h4>{$languageObject->cron_internal} (/etc/crontab)</h4>
|
||||
<strong>{$languageObject->cron_internal_text}</strong><br>
|
||||
0 */1 * * * ${displayPHPUser} cd " . EASYWIDIR . " && timeout 300 php ./reboot.php >/dev/null 2>&1<br>
|
||||
*/5 * * * * ${displayPHPUser} cd " . EASYWIDIR . " && timeout 290 php ./statuscheck.php >/dev/null 2>&1<br>
|
||||
@ -977,11 +977,19 @@ if ($currentStep == 9 and count($systemCheckError) == 0) {
|
||||
*/5 * * * * ${displayPHPUser} cd " . EASYWIDIR . " && timeout 290 php ./jobs.php >/dev/null 2>&1<br>
|
||||
*/10 * * * * ${displayPHPUser} cd " . EASYWIDIR . " && timeout 290 php ./cloud.php >/dev/null 2>&1</div>";
|
||||
|
||||
$displayToUser .= "<div class='alert alert-success'><h4>{$languageObject->cron_internal} (crontab -e)</h4>
|
||||
<strong>{$languageObject->cron_internal_text}</strong><br>
|
||||
0 */1 * * * cd " . EASYWIDIR . " && timeout 300 php ./reboot.php >/dev/null 2>&1<br>
|
||||
*/5 * * * * cd " . EASYWIDIR . " && timeout 290 php ./statuscheck.php >/dev/null 2>&1<br>
|
||||
*/1 * * * * cd " . EASYWIDIR . " && timeout 290 php ./startupdates.php >/dev/null 2>&1<br>
|
||||
*/5 * * * * cd " . EASYWIDIR . " && timeout 290 php ./jobs.php >/dev/null 2>&1<br>
|
||||
*/10 * * * * cd " . EASYWIDIR . " && timeout 290 php ./cloud.php >/dev/null 2>&1</div>";
|
||||
|
||||
$query = $sql->prepare("SELECT `pageurl` FROM `page_settings` WHERE `id`=1 LIMIT 1");
|
||||
$query->execute();
|
||||
$pageUrl = $query->fetchColumn();
|
||||
|
||||
$displayToUser .= "<div class='alert alert-success'><h4>{$languageObject->cron_external}</h4>
|
||||
$displayToUser .= "<div class='alert alert-success'><h4>{$languageObject->cron_external} (/etc/crontab)</h4>
|
||||
<strong>{$languageObject->cron_external_text}</strong><br>
|
||||
0 */1 * * * ExternalSSH2User wget -q --no-check-certificate -O - ${pageUrl}reboot.php >/dev/null 2>&1<br>
|
||||
*/5 * * * * ExternalSSH2User wget -q --no-check-certificate -O - ${pageUrl}statuscheck.php >/dev/null 2>&1<br>
|
||||
@ -989,6 +997,14 @@ if ($currentStep == 9 and count($systemCheckError) == 0) {
|
||||
*/5 * * * * ExternalSSH2User wget -q --no-check-certificate -O - ${pageUrl}jobs.php >/dev/null 2>&1<br>
|
||||
*/10 * * * * ExternalSSH2User wget -q --no-check-certificate -O - ${pageUrl}cloud.php >/dev/null 2>&1</div>";
|
||||
|
||||
$displayToUser .= "<div class='alert alert-success'><h4>{$languageObject->cron_external} (crontab -e)</h4>
|
||||
<strong>{$languageObject->cron_external_text}</strong><br>
|
||||
0 */1 * * * wget -q --no-check-certificate -O - ${pageUrl}reboot.php >/dev/null 2>&1<br>
|
||||
*/5 * * * * wget -q --no-check-certificate -O - ${pageUrl}statuscheck.php >/dev/null 2>&1<br>
|
||||
*/1 * * * * wget -q --no-check-certificate -O - ${pageUrl}startupdates.php >/dev/null 2>&1<br>
|
||||
*/5 * * * * wget -q --no-check-certificate -O - ${pageUrl}jobs.php >/dev/null 2>&1<br>
|
||||
*/10 * * * * wget -q --no-check-certificate -O - ${pageUrl}cloud.php >/dev/null 2>&1</div>";
|
||||
|
||||
}
|
||||
|
||||
if (strlen($displayToUser) == 0 and count($systemCheckError) > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user