From 820d0992eb4dcb01397df507d503bf6532ba9e84 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 3 Feb 2024 18:07:40 +1300 Subject: [PATCH] Allow running from the root --- scripts/cron-sync-ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cron-sync-ldap.php b/scripts/cron-sync-ldap.php index 32bf42d9..935168ee 100755 --- a/scripts/cron-sync-ldap.php +++ b/scripts/cron-sync-ldap.php @@ -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");