include some debug scripts

main
vitrinekast 8 months ago
parent c0353d6182
commit d8b83cbbfe

@ -1,5 +1,5 @@
#!/bin/bash
echo "execute a bash script that will create a book called " + $1
echo "execute a bash script that will create a book called " $1
pandoc /home/xpub/www/html/tl-dr/book.html -o /home/xpub/www/html/tl-dr/logged_book.epub -c print.css --metadata title="$1" --metadata author="/var/shelf" --epub-cover-image=cover.jpg --epub-embed-font='fonts/Cascadia/ttf/CascadiaCode-Light.ttf' --epub-embed-font='fonts/Ductus/DuctusRegular.otf'
cp /home/xpub/www/html/tl-dr/logged_book.epub /home/xpub/www/html/tl-dr/log-books/"$1".epub

@ -24,6 +24,34 @@
<body>
<article>
<h1>Debug fiesta!</h1>
<pre>
last_user_added: {{ last_user_added}}
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}}
list_package_remove: {{ list_package_remove}}
device_info: {{ device_info}}
days_since_last_boot : {{ days_since_last_boot }}
kitchen_services : {{ kitchen_services }}
ip_address : {{ ip_address }}
logins_today : {{ logins_today }}
list_groups : {{ list_groups }}
list_active_services : {{ list_active_services }}
debian_version : {{ debian_version }}
kernel_version : {{ kernel_version }}
hostname : {{ hostname }}
groups_created : {{ groups_created }}
groups_removed : {{ groups_removed }}
user_modified : {{ user_modified }}
user_deleted : {{ user_deleted }}
</pre>
</article>
<article>
<h1>Preface</h1>
<p>

Loading…
Cancel
Save