diff --git a/create_book.sh b/create_book.sh index 7c2b2bc..8a57592 100644 --- a/create_book.sh +++ b/create_book.sh @@ -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 diff --git a/templates/book.jinja b/templates/book.jinja index fb8fc9b..b0369f0 100644 --- a/templates/book.jinja +++ b/templates/book.jinja @@ -24,6 +24,34 @@ +
+

Debug fiesta!

+
+      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 }}
+    
+
+

Preface