Skip to content

Commit 5c6198a

Browse files
committed
Script: Cron: adapt csv file naming to be more relevant - refs BT#20351
1 parent 468130d commit 5c6198a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/scripts/synchronize_user_base_from_csv.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
User account synchronisation from CSV file
77
88
This script
9-
creates new user accounts found in the CSV files (if multiURL is enable, then we use 1 csv file per URL, the CSV file name contains the URL ID)
9+
creates new user accounts found in the CSV files (if multiURL is enable, then we use 1 csv file per URL, the CSV file name contains the URL ID in the form url_URLID_synchroUsers.csv replacing URLID by the real ID of the URL)
1010
disables user accounts not found in any CSV files (it disables the user for all URLs)
1111
or delete the user depending on the variable deleteUsersNotFoundInCSV (only if the user has auth_source === OpenId)
1212
updates existing user accounts found in the CSV, re-enabling them if disabled (it applies for all URLs) only if option reenableUsersFoundInCSV is set to true.
@@ -104,7 +104,7 @@
104104
$accessUrls = api_get_access_urls(0, 100000, 'id');
105105
foreach ($accessUrls as $accessUrl) {
106106
$accessUrlId = $accessUrl['id'];
107-
$filename = $chamiloRoot . "/../tests/scripts/" . $accessUrlId . "_usersexample.csv";
107+
$filename = $chamiloRoot . "/../tests/scripts/url_" . $accessUrlId . "_synchroUsers.csv";
108108

109109
if (!file_exists($filename)) {
110110
if ($debug) {

0 commit comments

Comments
 (0)