Skip to content

Commit

Permalink
rewrite edu2edugain to config
Browse files Browse the repository at this point in the history
  • Loading branch information
temaotl committed Jul 13, 2024
1 parent d099eb7 commit 0094a51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

MDA_CONFIG_FOLDER=/opt/mda-distribution-0.10.0/config
MDA_SCRIPT=/opt/mda-distribution-0.10.0/mda.sh
EDU_TO_EDUGAIN_FOLDER="eduid2edugain"

GIT_REMOTE=[email protected]:repository
GIT_REMOTE_BRANCH=main
Expand Down
2 changes: 1 addition & 1 deletion app/Traits/EdugainTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait EdugainTrait

public function makeEdu2Edugain()
{
$folderName = 'eduid2edugain';
$folderName = config('storageCfg.edu2edugain');
$eduFed = Entity::where('edugain', 1)->get();

foreach ($eduFed as $edu) {
Expand Down
1 change: 1 addition & 0 deletions config/storageCfg.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
'name' => 'metadata',
'mdaConfigFolder' => env('MDA_CONFIG_FOLDER'),
'mdaScript' => env('MDA_SCRIPT'),
'edu2edugain' =>env('EDU_TO_EDUGAIN_FOLDER'),
];

0 comments on commit 0094a51

Please sign in to comment.