znc-docker/full/30-build-modules.sh
Alexey Sokolov e8e0af1bae pushd is a bash extension
Fix #5

I accidentally broke this while fixing #4
2017-06-27 22:23:26 +01:00

18 lines
346 B
Bash

# Build modules from source.
if [ -d "${DATADIR}/modules" ]; then
cd "${DATADIR}/modules" || exit 11
# Find module sources.
modules=$(find . -name "*.cpp")
if [ -n "$modules" ]; then
# Build modules.
echo "Building modules $modules..."
/opt/znc/bin/znc-buildmod $modules || exit 12
fi
cd /
fi