From 7962a731dbbe999dac953dcc8c4076d7140e60b1 Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Tue, 27 Nov 2018 09:28:15 -0500 Subject: [PATCH] motd and error page generation --- bin/cosmic-web | 7 +++++++ files/motd | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/bin/cosmic-web b/bin/cosmic-web index c8aa0c3..36bd2be 100755 --- a/bin/cosmic-web +++ b/bin/cosmic-web @@ -111,6 +111,13 @@ if [ "$run_user" -eq 0 ]; then printf "" } >> "${ships_html}" + # Print error page + error_html="/var/www/html/error.html" + cat "/home/tomasino/cosmic/files/web-header.tmpl" > "${error_html}" + { + printf "
<<< BACK TO RELAY ONE"
+    printf "\\n\\n\\nERROR. TRANSMISSION NOT FOUND.
" + } >> "${error_html}" else printf "You must be root to run this script.\\n" fi diff --git a/files/motd b/files/motd index 1f417ba..3ccb4d0 100644 --- a/files/motd +++ b/files/motd @@ -3,6 +3,10 @@ (_.(_)_) [ | )|(_. \/ (_)\_|(_](_](/, ._| ._| +Nov 26, 2018: + - Ships have individual pages and logs. Add a '.description' file + to your ship directory to give your ship page a header + Nov 25, 2018: - We now have a local IRC server! It connects to tilde.chat - Web & RSS update on the hour instead of daily