diff --git a/jobs/fastcgi.nomad b/jobs/fastcgi.nomad index edfd208..a2b5dd5 100644 --- a/jobs/fastcgi.nomad +++ b/jobs/fastcgi.nomad @@ -75,8 +75,14 @@ job "fastcgi" { } template { - data = var.run - destination = "local/run.php" + data = var.postrun + destination = "local/postrun" + change_mode = "noop" + } + + template { + data = var.postrun + destination = "local/prerun" change_mode = "noop" } @@ -92,7 +98,8 @@ job "fastcgi" { "secrets/analytics-credentials-file.json:/a/analytics-credentials-file.json", # Overwrite the default Hotfix.php provided by femiwiki/mediawiki "local/Hotfix.php:/a/Hotfix.php", - "local/Hotfix.php:/usr/local/bin/run", + "local/postrun:/usr/local/bin/postrun", + "local/prerun:/usr/local/bin/prerun", ] mounts = [ @@ -151,12 +158,6 @@ variable "hotfix" { */ $wgMWLoggerDefaultSpi = [ 'class' => 'MediaWiki\\Logger\\LegacySpi' ]; # default -$wgGroupPermissions['autopatrolled']['autopatrol'] = true; -$wgGroupPermissions['blocker']['block'] = true; -$wgGroupPermissions['blocker']['blockemail'] = true; -$wgGroupPermissions['blocker']['unblockself'] = true; -$wgGroupPermissions['user']['torunblocked'] = false; -$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 3; // Maintenance // 점검이 끝나면 아래 라인 주석처리한 뒤, 아래 문서 내용을 비우면 됨 @@ -168,55 +169,21 @@ $wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 3; EOF } -variable "run" { +variable "postrun" { + type = string + default = <