aboutsummaryrefslogtreecommitdiff
path: root/docker/scripts/post/10_ejabberd_modules_update_specs.sh
blob: 01f20001e20dd87801019b9a476d65142f4b955d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e

# Updates the known modules as to be found in https://github.com/processone/ejabberd-contrib

source "${EJABBERD_HOME}/scripts/lib/base_config.sh"
source "${EJABBERD_HOME}/scripts/lib/config.sh"
source "${EJABBERD_HOME}/scripts/lib/base_functions.sh"
source "${EJABBERD_HOME}/scripts/lib/functions.sh"


run_modules_update_specs() {
    echo -n 'Updating module specs... '
    ${EJABBERDCTL} modules_update_specs
}


is_true ${EJABBERD_SKIP_MODULES_UPDATE} \
    && exit 0

run_modules_update_specs


exit 0