mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Can't have pipe in LXC_EXEC commands
This commit is contained in:
parent
280c3261d6
commit
473da583d2
1 changed files with 5 additions and 2 deletions
|
@ -250,8 +250,11 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result
|
||||||
# If we had a 50x error, try to display service info and logs to help debugging
|
# If we had a 50x error, try to display service info and logs to help debugging
|
||||||
if [[ $curl_error -ne 0 ]] && echo "5" | grep -q "${http_code:0:1}"
|
if [[ $curl_error -ne 0 ]] && echo "5" | grep -q "${http_code:0:1}"
|
||||||
then
|
then
|
||||||
LXC_EXEC "systemctl | grep '$app.*service'"
|
LXC_EXEC "systemctl" | grep "$app_id_to_check.*service"
|
||||||
LXC_EXEC "for SERVICE in $(systemctl | grep "$app.*service" | awk '{print $1}'); do journalctl --no-pager --no-hostname -n 30 -u $SERVICE; done"
|
for SERVICE in LXC_EXEC "systemctl" | grep "$app_id_to_check.*service" | awk '{print $1}'
|
||||||
|
do
|
||||||
|
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE";
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue