Add the -$switch_version postfix and use it consistently

This commit is contained in:
FusionPBX
2026-02-22 00:02:01 -07:00
committed by GitHub
parent 7e0127c44d
commit f32430b587
2 changed files with 3 additions and 7 deletions

View File

@@ -95,8 +95,8 @@ if [ ."$os_codename" = ."trixie" ] || [ ."$switch_branch" = ."master" ]; then
#master branch
echo "Using version master"
rm -r /usr/src/freeswitch
git clone https://github.com/signalwire/freeswitch.git
cd /usr/src/freeswitch
git clone https://github.com/signalwire/freeswitch.git freeswitch-$switch_version
cd /usr/src/freeswitch-$switch_version
git remote add fusionpbx https://github.com/fusionpbx/freeswitch.git
git fetch fusionpbx

View File

@@ -8,11 +8,7 @@ cd "$(dirname "$0")"
. ../environment.sh
# change the working directory
if [ ."$switch_branch" = ."master" ]; then
cd /usr/src/freeswitch
else
cd /usr/src/freeswitch-$switch_version
fi
cd /usr/src/freeswitch-$switch_version
# compile and install the sounds
make sounds-install moh-install