Skip to content

Commit d9e2ef9

Browse files
committed
disable shutdown message in worker scripts
1 parent fcb5437 commit d9e2ef9

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ vendor
1010
composer.lock
1111

1212
# don't track site configs
13-
deployment/*
13+
deployment/**/*
1414
!deployment/overrides/
1515
!deployment/overrides/phpunit/
1616
!deployment/overrides/phpunit/config/
1717
!deployment/overrides/phpunit/config/config.ini
18+
!deployment/overrides/worker/
19+
!deployment/overrides/worker/config/
20+
!deployment/overrides/worker/config/config.ini
1821
!deployment/**/README.md
1922

2023
.phpunit.result.cache
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[site]
2+
enable_shutdown_msg = false

workers/clear-audit-log.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
$_SERVER["HTTP_HOST"] = "worker"; // see deployment/overrides/worker
4+
35
require_once __DIR__ . "/../resources/autoload.php";
46
require_once __DIR__ . "/../resources/init.php";
57

workers/group_user_request_owner_reminder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
Removes the request after 34 days have passed.
66
*/
77

8+
$_SERVER["HTTP_HOST"] = "worker"; // see deployment/overrides/worker
9+
810
require_once __DIR__ . "/../resources/autoload.php";
911
use UnityWebPortal\lib\UnityGroup;
1012

workers/remove-users-from-group.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
$_SERVER["HTTP_HOST"] = "worker"; // see deployment/overrides/worker
4+
35
require_once __DIR__ . "/../resources/autoload.php";
46
use UnityWebPortal\lib\UnityUser;
57
use UnityWebPortal\lib\UnityGroup;

workers/update-ldap-cache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/php
22
<?php
33

4+
$_SERVER["HTTP_HOST"] = "worker"; // see deployment/overrides/worker
5+
46
require_once __DIR__ . "/../resources/autoload.php";
57

68
use UnityWebPortal\lib\UnityConfig;

0 commit comments

Comments
 (0)