netgescon-day0/public/installers/netgescon-node-bootstrap.php

20 lines
575 B
PHP
Executable File

<?php
declare (strict_types = 1);
$scriptPath = dirname(__DIR__, 2) . '/scripts/install/netgescon-node-bootstrap.sh';
if (! is_file($scriptPath) || ! is_readable($scriptPath)) {
http_response_code(404);
header('Content-Type: text/plain; charset=UTF-8');
echo "Installer script not found.\n";
exit;
}
header('Content-Type: text/plain; charset=UTF-8');
header('Content-Disposition: inline; filename="netgescon-node-bootstrap.sh"');
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');
readfile($scriptPath);