mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
fix serve.sh
This commit is contained in:
parent
dd9e7ba27c
commit
0378cdbee6
1 changed files with 2 additions and 2 deletions
4
serve.sh
4
serve.sh
|
@ -4,7 +4,7 @@ php_bin=""
|
|||
host=localhost
|
||||
port=8000
|
||||
|
||||
for try_bin in /usr/bin/php7.4 php7 php
|
||||
for try_bin in php74 php7.4 php7 php
|
||||
do
|
||||
php_bin=$(command -v $try_bin)
|
||||
if [ -n "$php_bin" ]
|
||||
|
@ -27,7 +27,7 @@ fi
|
|||
# check if we should update schedules, upcoming, etc.
|
||||
if [ -z "$(find "configs/upcoming.json" -newermt "8 hours ago")" ]; then
|
||||
echo "Updating schedules…\n"
|
||||
./download.sh
|
||||
$php_bin -d short_open_tag=true index.php download
|
||||
echo
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue