trigger script is pointless now

This commit is contained in:
jan6 2021-10-10 22:26:33 +03:00
parent aa470a4eec
commit f8dd3f918f
4 changed files with 1 additions and 14 deletions

2
.gitmodules vendored
View File

@ -2,5 +2,3 @@
path = src/wiki
url = https://tildegit.org/cafe/wiki
branch = HEAD
[submodule "wiki"]
branch = main

View File

@ -1 +0,0 @@
../trigger_update.php

@ -1 +1 @@
Subproject commit e2475cb732ed543c3631c9c3133f45d83ea513c6
Subproject commit b1e319c11111e304bc2ff790dc299ac5fe85114e

View File

@ -1,10 +0,0 @@
<?php
exec("date >>/tmp/a.txt");
$secret=trim(file_get_contents('../trigger_secret.txt', FILE_USE_INCLUDE_PATH));
if($_SERVER['QUERY_STRING']=="site=".$secret or $_SERVER['QUERY_STRING']=="wiki=".$secret){
print("True\n");
exec("cd ..&&./build.sh");
}else{
print("False\n");
}
?>