initial commit

This commit is contained in:
2025-03-18 10:59:32 -04:00
commit fed4d36f10
3 changed files with 110 additions and 0 deletions

16
entrypoint.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
CONF_DIR="/usr/local/freeswitch/conf"
DEFAULT_CONF_DIR="/usr/local/freeswitch/default-conf"
# Check if conf directory is empty or missing files
if [ -z "$(ls -A "$CONF_DIR" 2>/dev/null)" ]; then
echo "Configuration directory is empty. Copying default configuration..."
cp -r "$DEFAULT_CONF_DIR"/* "$CONF_DIR"/
else
echo "Configuration directory is already populated. Skipping copy."
fi
# Execute the main process
exec /usr/local/freeswitch/bin/freeswitch