diff --git a/.env.example b/.env.example index f22e66f..d7863f2 100644 --- a/.env.example +++ b/.env.example @@ -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=user@git.example.org:repository GIT_REMOTE_BRANCH=main diff --git a/app/Traits/EdugainTrait.php b/app/Traits/EdugainTrait.php index fd146c3..0970a31 100644 --- a/app/Traits/EdugainTrait.php +++ b/app/Traits/EdugainTrait.php @@ -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) { diff --git a/config/storageCfg.php b/config/storageCfg.php index fe6a17e..cb12053 100644 --- a/config/storageCfg.php +++ b/config/storageCfg.php @@ -4,4 +4,5 @@ 'name' => 'metadata', 'mdaConfigFolder' => env('MDA_CONFIG_FOLDER'), 'mdaScript' => env('MDA_SCRIPT'), + 'edu2edugain' =>env('EDU_TO_EDUGAIN_FOLDER'), ];