Allow running from the root

This commit is contained in:
Andrew Ruthven 2024-02-03 18:07:40 +13:00
parent 995fe296c4
commit 820d0992eb

View File

@ -26,7 +26,7 @@ USAGE;
$_SERVER['SERVER_NAME'] = $argv[1];
chdir(str_replace('/scripts/cron-sync-ldap.php','/htdocs',$script_file));
chdir(str_replace('scripts/cron-sync-ldap.php', 'htdocs', $script_file));
require_once("./always.php");