diff --git a/templates/book.jinja b/templates/book.jinja index eaa81ac..c920537 100644 --- a/templates/book.jinja +++ b/templates/book.jinja @@ -223,68 +223,57 @@ user_deleted : {{ user_deleted }} This command shows whether groups were added today. - {% endif %} + {% if groups_removed|length > 0 %} +

tldr@chopchop:~ $sudo journalctl _COMM=grouPremove -r --output-fields=MES

+ + This command shows whether groups were removed today. + - {% if groups_created|length < 0 %} - No groups were added today. + {{ log_output(groups_removed) }} + + + These new groups were removed today. Most likely they were no longer relevant or purposeful. + {% endif %} - For some reason this if statement is not working, i didn't apply it to the next 4 categories because i - wanted to check it works first -

tldr@chopchop:~ $sudo journalctl _COMM=grouPremove -r --output-fields=MES

- - This command shows whether groups were removed today. - + {% if user_modified|length > 0 %} - +

tldr@chopchop:~ $sudo journalctl _COMM=usermod -r

+ + This command shows whether users were modified today. + + + {{ log_output(user_modified) }} -

tldr@chopchop:~ $sudo journalctl _COMM=usermod -r

- - This command shows whether users were modified today. - - + {% endif %} + + {% if user_deleted|length > 0 %}

tldr@chopchop:~ $sudo journalctl _COMM=userdel -r

This command shows whether users were removed today. - + + {{ log_output(user_deleted) }} + + + It seems that a user was removed. This doesn't happen too often... It could be that they have done + something to lose the trust of the community. The circle of trust shrunk ever so slightly. + + + {% endif %}

tldr@chopchop:~ $sudo service --status-all

@@ -292,21 +281,12 @@ user_deleted : {{ user_deleted }} on the server. They are marked with an [+]. The rest, marked with a [-], are idle, not running, or waiting to be activating upon sending a request. - + {{ log_output(list_active_services) }}

tldr@chopchop:~ $sudo journalctl -S today -u kitchen-stove.service -u kitchen-bin.service -u kitchen-fridge.service -r -n

- {% if kitchen_services|length > 0 %} - - {% endif %} + + {{ log_output(kitchen_services) }}