mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-09 13:55:41 +00:00
[GHA] Change File Paths - generate-files.sh and dependencies
This commit is contained in:
parent
17f99ffdc0
commit
722c1e18bc
11 changed files with 136 additions and 137 deletions
|
@ -26,7 +26,7 @@ class Generator
|
|||
*/
|
||||
public function domainWorker()
|
||||
{
|
||||
$domainsFile = "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-referrers.list";
|
||||
$domainsFile = "./_generator_lists/bad-referrers.list";
|
||||
|
||||
$handle = fopen($domainsFile, "r");
|
||||
if (!$handle) {
|
||||
|
@ -69,7 +69,7 @@ class Generator
|
|||
*/
|
||||
protected function writeToFile($filename, $data)
|
||||
{
|
||||
$file = "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/.dev-tools/referrers-regex-format.txt";
|
||||
$file = "./.dev-tools/referrers-regex-format.txt";
|
||||
$handle = fopen($file, 'w') or die('Cannot open file: '.$file);
|
||||
fwrite($handle, $data);
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ class Generator
|
|||
*/
|
||||
public function createNginx(array $lines)
|
||||
{
|
||||
$file = "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/.dev-tools/referrers-regex-format.txt";
|
||||
$file = "./.dev-tools/referrers-regex-format.txt";
|
||||
$data = "";
|
||||
{
|
||||
foreach ($lines as $line) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue