motd and error page generation

This commit is contained in:
James Tomasino 2018-11-27 09:28:15 -05:00
parent 1c777b4d9a
commit 7962a731db
2 changed files with 11 additions and 0 deletions

View File

@ -111,6 +111,13 @@ if [ "$run_user" -eq 0 ]; then
printf "</html>"
} >> "${ships_html}"
# Print error page
error_html="/var/www/html/error.html"
cat "/home/tomasino/cosmic/files/web-header.tmpl" > "${error_html}"
{
printf "</head><body><div class=\"page-wrapper\"><pre class=\"inner-wrapper\"><a href=\"/\">&lt;&lt;&lt; BACK TO RELAY ONE</a>"
printf "\\n\\n\\nERROR. TRANSMISSION NOT FOUND.</pre></div></body></html>"
} >> "${error_html}"
else
printf "You must be root to run this script.\\n"
fi

View File

@ -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