This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-21 23:54:20 +01:00
|
|
|
#!/usr/bin/env sh
|
2019-10-02 23:46:40 +02:00
|
|
|
|
2023-06-10 23:55:34 +02:00
|
|
|
# shellcheck disable=SC3040
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
if [ "$(gomplate -i '{{ getenv "FRESHRSS_API_ENABLED" "false" | conv.ToBool }}')" = "true" ]; then
|
2023-06-11 00:20:49 +02:00
|
|
|
(php -r "readfile('http://127.0.0.1:8080/api/fever.php');" | grep -q 'api_version') || exit 1
|
2023-06-10 23:55:34 +02:00
|
|
|
else
|
|
|
|
(php -r "readfile('http://127.0.0.1:8080/i/');" | grep -q 'jsonVars') || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|