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. -
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. - -tldr@chopchop:~ $sudo journalctl _COMM=userdel -r
This command shows whether users were removed today. -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. -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 %} -