duplicates

main
vitrinekast 9 months ago
parent 608964855c
commit 08bf720756

@ -102,7 +102,6 @@ output = template.render(
now = now.strftime("%B %dth %Y"),
last_user_added=last_user_added.stdout.decode('UTF-8'),
last_user_added_name=last_user_added_name,
users_created_today=users_created_today,
since_last_boot=since_last_boot,
list_package_installs=list_package_installs,
list_package_upgrade=list_package_upgrade,
@ -114,21 +113,12 @@ output = template.render(
list_active_services = run_command(["sudo", "service", "--status-all"]).splitlines() if not time_ago_arg else False,
debian_version = run_command(["cat", "/etc/debian_version"]) if not time_ago_arg else False,
hostname = run_command(["hostname","-i"]) if not time_ago_arg else False,
groups_created = run_command(['grep', '-v','groupadd'], based=journal_today.stdout).splitlines(),
groups_removed = run_command(['grep', '-v','groupremove'], based=journal_today.stdout).splitlines(),
users_created_today = run_command(['grep', '-v','useradd'], based=journal_today.stdout).splitlines(),
user_modified = run_command(['grep', '-v','usermod'], based=journal_today.stdout).splitlines(),
user_deleted = run_command(['grep', '-v','userdel'], based=journal_today.stdout).splitlines(),
logins_today = run_command(['grep', '-v','New session'], based=journal_today.stdout).splitlines(),
logins_today = run_command(['grep', '-v', "Boot"], based=logins_today_log.stdout).splitlines(),
groups_created = run_command(['grep', '-v', "Boot"], based=groupadd_today_log.stdout).splitlines(),
groups_removed = run_command(['grep', '-v', "Boot"], based=groupremove_today_log.stdout).splitlines(),
user_modified = run_command(['grep', '-v', "Boot"], based=usermod_today_log.stdout).splitlines(),
user_deleted = run_command(['grep', '-v', "Boot"], based=userdel_today_log.stdout).splitlines()
)

Loading…
Cancel
Save