From d65f9360aa7dfa6820b3ed26fdc8e21be1f57cdd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 4 May 2026 15:05:35 -0600 Subject: [PATCH] Add mkdir -p command for sounds and music --- debian/resources/switch/source-sounds.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/resources/switch/source-sounds.sh b/debian/resources/switch/source-sounds.sh index d2ad211..89fc4a0 100755 --- a/debian/resources/switch/source-sounds.sh +++ b/debian/resources/switch/source-sounds.sh @@ -7,6 +7,9 @@ cd "$(dirname "$0")" . ../config.sh . ../environment.sh +# Make the sounds directory +mkdir -p /usr/share/freeswitch/sounds + # Change the working directory cd /usr/share/freeswitch/sounds @@ -25,7 +28,10 @@ for sample_rate in $sample_rates; do /usr/bin/tar xvzf "freeswitch-sounds-en-us-callie-${sample_rate}-1.0.53.tar.gz" done -# Change to directory to the music directory +# Make the music directory +mkdir -p /usr/share/freeswitch/sounds/music + +# Change the current directory to the music directory cd /usr/share/freeswitch/sounds/music # Loop through each sample rate