mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix service name parsing, there's a stupid ● hanging on the line
This commit is contained in:
parent
a84c5f760f
commit
cbe130a714
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result
|
||||||
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 --all" | grep "$app_id_to_check.*service"
|
LXC_EXEC "systemctl --all" | grep "$app_id_to_check.*service"
|
||||||
for SERVICE in $(LXC_EXEC "systemctl -all" | grep "$app_id_to_check.*service" | awk '{print $1}')
|
for SERVICE in $(LXC_EXEC "systemctl -all" | grep -o "$app_id_to_check.*service")
|
||||||
do
|
do
|
||||||
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE";
|
LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE";
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue