mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-16 15:00:15 +02:00
Make Directory Sync a module
This commit is contained in:
@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
function dirSetup() {
|
|
||||||
if [ -n "$DS_DIRECTORY_USER_NAME" ]; then
|
|
||||||
log INFO "Directory sync setup detected -- will start directory sync service."
|
|
||||||
OVERRIDE+=" -f ./$PROJECT/directory-sync-compose.yml"
|
|
||||||
fi
|
|
||||||
}
|
|
6
bbmri/modules/directory-sync.sh
Executable file
6
bbmri/modules/directory-sync.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -n "${DS_DIRECTORY_USER_NAME}" ]; then
|
||||||
|
log INFO "Directory sync setup detected -- will start directory sync service."
|
||||||
|
OVERRIDE+=" -f ./$PROJECT/modules/directory-sync-compose.yml"
|
||||||
|
fi
|
@ -11,7 +11,3 @@ do
|
|||||||
log DEBUG "sourcing $module"
|
log DEBUG "sourcing $module"
|
||||||
source $module
|
source $module
|
||||||
done
|
done
|
||||||
|
|
||||||
# This will load directory-sync setup.
|
|
||||||
source $PROJECT/directory-sync.sh
|
|
||||||
dirSetup
|
|
||||||
|
Reference in New Issue
Block a user