<?php
declare(strict_types=1);

$rootDir = __DIR__;
$lockFile = $rootDir . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'install.lock';

$installed = is_file($lockFile);

header('Location: ' . ($installed ? 'admin/' : 'install/'), true, 302);
exit;
