mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
curl tests: tail hanging forever to stdin ~_~
This commit is contained in:
parent
553d7c6a76
commit
cf51d37285
1 changed files with 2 additions and 2 deletions
|
@ -281,10 +281,10 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
|
|||
do
|
||||
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE";
|
||||
done
|
||||
LXC_EXEC "test -d /var/log/$app_id_to_check && ls -ld /var/log/$app_id_to_check && ls -l /var/log/$app_id_to_check && tail -v -n 15 \$(find /var/log/$app_id_to_check -type f 2>/dev/null)"
|
||||
LXC_EXEC "test -d /var/log/$app_id_to_check && ls -ld /var/log/$app_id_to_check && ls -l /var/log/$app_id_to_check && tail -v -n 15 /var/log/$app_id_to_check/*"
|
||||
if grep -qi php $package_path/manifest.toml
|
||||
then
|
||||
LXC_EXEC "ls -l /var/log/php* 2>/dev/null; tail -v -n 15 \$(find /var/log/php* =type f 2>/dev/null)"
|
||||
LXC_EXEC "tail -v -n 15 /var/log/php* /var/log/nginx/error.log /var/log/nginx/$domain_to_check-error.log"
|
||||
fi
|
||||
fi
|
||||
# Display nginx logs only if for non-50x errors (sor for example 404) to avoid poluting the debug log
|
||||
|
|
Loading…
Add table
Reference in a new issue