motd and error page generation
This commit is contained in:
parent
1c777b4d9a
commit
7962a731db
|
@ -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=\"/\"><<< 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue