Make Directory Sync a module

This commit is contained in:
Martin Lablans 2023-08-07 13:00:24 +02:00
parent 6ccf9b2a70
commit b32a19a7b5
4 changed files with 6 additions and 12 deletions

View File

@ -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
}

View 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

View File

@ -11,7 +11,3 @@ do
log DEBUG "sourcing $module"
source $module
done
# This will load directory-sync setup.
source $PROJECT/directory-sync.sh
dirSetup