senka 8 months ago
commit b2f6dde83b

@ -42,8 +42,12 @@ mark {
display: block; display: block;
padding-left: 0.5cm; padding-left: 0.5cm;
font-family: "DuctusRegular"; font-family: "DuctusRegular";
<<<<<<< HEAD
margin-bottom: 1cm; margin-bottom: 1cm;
margin-right: 1cm; margin-right: 1cm;
=======
white-space: normal;
>>>>>>> f838a40ff28785f7358a6f3abf37b3cf89ad0d25
} }
h1, h1,

@ -44,10 +44,11 @@ time_since_last_boot = now - slb_date
dpkg_date = now.strftime("%Y-%m-%d") dpkg_date = now.strftime("%Y-%m-%d")
list_package_installs = subprocess.run(["grep","-E", '${dpkg_date}.*install|install.*${dpkg_date}', "/var/log/dpkg.log"], capture_output=True).stdout.decode('UTF-8').splitlines() list_package_installs = subprocess.run(["grep","-E", dpkg_date + '.*install|install.*' + dpkg_date, "/var/log/dpkg.log"], capture_output=True).stdout.decode('UTF-8').splitlines()
list_package_upgrade = subprocess.run(["grep","-E", '${dpkg_date}.*upgrade|upgrade.*${dpkg_date}', "/var/log/dpkg.log"], capture_output=True).stdout.decode('UTF-8').splitlines()
list_package_remove = subprocess.run(["grep","-E", '${dpkg_date}.*remove|remove.*${dpkg_date}', "/var/log/dpkg.log"], capture_output=True).stdout.decode('UTF-8').splitlines()
list_package_upgrade = subprocess.run(["grep","-E", dpkg_date + '.*upgrade|upgrade.*' + dpkg_date, "/var/log/dpkg.log"], capture_output=True).stdout.decode('UTF-8').splitlines()
list_package_remove = subprocess.run(["grep","-E", dpkg_date + '.*remove|remove.*' + dpkg_date, "/var/log/dpkg.log"], capture_output=True).stdout.decode('UTF-8').splitlines()
device_info_grab = subprocess.run(["grep", 'Model' , "/proc/cpuinfo"], check=True, capture_output=True) device_info_grab = subprocess.run(["grep", 'Model' , "/proc/cpuinfo"], check=True, capture_output=True)
device_info = run_command(['awk', '-F:', '{ print $2}'], based=device_info_grab.stdout) device_info = run_command(['awk', '-F:', '{ print $2}'], based=device_info_grab.stdout)

@ -73,11 +73,14 @@
<mark> <mark>
Users are assigned to groups, which allow them rights to read or edit files, run commands or apply infrastructural changes. For chopchop, we all have 'sudo rights': the ability to perform any command, including the more sensitive ones. Sudo is a command that's short for 'superuser do', with it, a user has more privileges, like installing or updating a package or performing a restart. Users are assigned to groups, which allow them rights to read or edit files, run commands or apply infrastructural changes. For chopchop, we all have 'sudo rights': the ability to perform any command, including the more sensitive ones. Sudo is a command that's short for 'superuser do', with it, a user has more privileges, like installing or updating a package or performing a restart.
</mark> </mark>
{% if users_created_today is defined %} {% if users_created_today is defined %}
<mark> <mark>
{% if users_created_today|length > 0 %}{{last_user_name}} user was added, and the network of trust grew ever so slightly. Users will be trusted with not just the keys and passwords to the "house" which is the server, but with a {% if users_created_today|length > 0 %}
portion of responsibility to keep it afloat and contribute to what makes it a community of practices (and {{last_user_name}} user was added, and the network of trust grew ever so slightly. Users will be trusted with not just the keys and passwords to the "house" which is the server, but with a portion of responsibility to keep it afloat and contribute to what makes it a community of practices (and network of knowledge and dependence).
network of knowledge and dependence).{% else %}No new users were created today. The trust network remains the same size.{% endif %} {% else
No new users were created today. The trust network remains the same size.
{% endif %}
</mark> </mark>
{% endif %} {% endif %}

Loading…
Cancel
Save