refs #2850 add cgi error page

pull/125/head
Natalia Serrano 2025-09-29 15:35:46 +02:00
parent bcf69b6bfe
commit de5d4bc04b
4 changed files with 20 additions and 3 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.7.0] - 2025-09-29
### Added
- Add CGI error page
## [1.6.2] - 2025-09-26
### Fixed

View File

@ -0,0 +1,12 @@
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<html><head><title>OpenGnsys Client $(/opt/opengnsys/functions/ogGetIpAddress)</title>"
echo " <meta charset='utf-8'>"
echo "</head><body>"
echo "<h1>Ocurrió un error durante el arranque del agente</h1>"
echo "<p>Consulte el log del agente para más información</p>"
echo "</body></html>"

View File

@ -14,4 +14,4 @@ echo "<IFRAME SRC='cache.sh' WIDTH=590 HEIGHT=90><A HREF="cache.sh">link</a>
echo "<IFRAME SRC='LogSession.sh' WIDTH=850 HEIGHT=230> <A HREF="LogSession.sh">link</A> </IFRAME>"
echo "<IFRAME SRC='LogCommand.sh' WIDTH=850 HEIGHT=280> <A HREF="LogCommand.sh">link</A> </IFRAME>"
echo "</body>
echo "</body></html>"

View File

@ -10,5 +10,4 @@ echo "<html><head><title>OpenGnsys Client</title></head><body>"
$(wget http://172.17.9.205/opengnsys/varios/menubrowser.php -O /tmp/menu.tmp)
echo "$(cat /tmp/menu.tmp)"
echo "</body>
echo "</body></html>"