From 919a89008c9605bd6157ca7dec647781f20498b0 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Sun, 12 Dec 2021 16:07:23 -0500 Subject: [PATCH] Update dump_logs.sh --- scripts/dump_logs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dump_logs.sh b/scripts/dump_logs.sh index a22fbd9..f4ca828 100755 --- a/scripts/dump_logs.sh +++ b/scripts/dump_logs.sh @@ -11,7 +11,7 @@ services=$(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install # Create services logs for i in "${services[@]}";do - if [ -L /etc/systemd/system/multi-user.target.wants/${i} ];then + if [ -L "/etc/systemd/system/multi-user.target.wants/${i}" ];then journalctl -u ${i} -n 100 --no-pager > ${LOG_DIR}/${i}.log cp -L /etc/systemd/system/multi-user.target.wants/${i} ${LOG_DIR}/${i} fi