Update dump_logs.sh

This commit is contained in:
Patrick McGuire
2021-12-12 16:07:23 -05:00
committed by GitHub
parent c3cf54dd4d
commit 919a89008c
+1 -1
View File
@@ -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