nodejs-website/pages/helpers/body_open.php
Chad 8bf7981b90
Clean Log Warnings, Enhance Runnability (#25)
* Only check the variable if it is set, avoid a log error.

* Pipe errors to SDOUT in case that's why Docker is not showing NPM progress.

* Two messages seemed very similar. Differentiate them.

* Check and install each dependency separately in case a lighter version is already installed.

* Don't require sudo if running as root.

* Use node instead of relying on shebang.

* Allow doing "npm start".

* Remove redirects, did not help see progress.

* Add a note when sudo is used.

* Fix node interpretor location to be arbitrary.

* Woops, need to keep advisories if the value is not set to false.

* Remove warning about apt CLI. Allow npm start to do dependencies.

* `npm start` is not magic, still need to run the install.

* Have `npm start` execute the main run script rather than bypassing dependency checks.

* Use PHP-CLI, smaller install size and more appropriate since only running local scripts.
2024-04-03 20:02:58 -07:00

14 lines
205 B
PHP
Executable File

#!/usr/bin/php
<?php
include "header.php";
?>
<body>
<?php
include "banner.php";
include "menu.php";
if (!isset($GLOBALS["ADVISORY"]) || $GLOBALS["ADVISORY"] !== false)
include "advisory.php";
?>