mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-03 22:26:51 +00:00
[UTILS] FSGET: Transition to using deb822 format for Debian sources replacing the old freeswitch.list
This commit is contained in:
parent
72827d0944
commit
7f3c7bd55a
@ -23,12 +23,12 @@ source_os_release()
|
|||||||
setup_common()
|
setup_common()
|
||||||
{
|
{
|
||||||
rm -f /etc/apt/sources.list.d/freeswitch.list
|
rm -f /etc/apt/sources.list.d/freeswitch.list
|
||||||
|
rm -f /etc/apt/sources.list.d/freeswitch.sources
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
curl \
|
curl \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
grep \
|
grep
|
||||||
software-properties-common
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_auth()
|
configure_auth()
|
||||||
@ -107,12 +107,16 @@ if [ "${ID,,}" = "debian" ]; then
|
|||||||
--output ${GPG_KEY} \
|
--output ${GPG_KEY} \
|
||||||
https://${DOMAIN}/repo/deb/${RPI}debian-release/signalwire-freeswitch-repo.gpg
|
https://${DOMAIN}/repo/deb/${RPI}debian-release/signalwire-freeswitch-repo.gpg
|
||||||
|
|
||||||
echo "deb [signed-by=${GPG_KEY}] https://${DOMAIN}/repo/deb/${RPI}debian-${RELEASE}/ ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/freeswitch.list
|
echo "Types: deb deb-src" > /etc/apt/sources.list.d/freeswitch.sources
|
||||||
echo "deb-src [signed-by=${GPG_KEY}] https://${DOMAIN}/repo/deb/${RPI}debian-${RELEASE}/ ${VERSION_CODENAME} main" >> /etc/apt/sources.list.d/freeswitch.list
|
echo "URIs: https://${DOMAIN}/repo/deb/${RPI}debian-${RELEASE}/" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
echo "Suites: ${VERSION_CODENAME}" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
echo "Components: main" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
echo "Signed-By: ${GPG_KEY}" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
|
||||||
install_freeswitch "Community" "${ACTION}"
|
install_freeswitch "Community" "${ACTION}"
|
||||||
elif [[ ${TOKEN} == PT* ]]; then
|
elif [[ ${TOKEN} == PT* ]]; then
|
||||||
DOMAIN="fsa.freeswitch.com"
|
DOMAIN="fsa.freeswitch.com"
|
||||||
|
GPG_KEY="/usr/share/keyrings/signalwire-freeswitch-advantage-repo.gpg"
|
||||||
RPI=""
|
RPI=""
|
||||||
|
|
||||||
if [ "${RELEASE,,}" = "prerelease" ]; then
|
if [ "${RELEASE,,}" = "prerelease" ]; then
|
||||||
@ -133,10 +137,14 @@ if [ "${ID,,}" = "debian" ]; then
|
|||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
--netrc-file /etc/apt/auth.conf \
|
--netrc-file /etc/apt/auth.conf \
|
||||||
https://${DOMAIN}/repo/deb/fsa${RPI}/pubkey.gpg | tee /etc/apt/trusted.gpg.d/freeswitch-enterprise.asc
|
--output ${GPG_KEY} \
|
||||||
|
https://${DOMAIN}/repo/deb/fsa${RPI}/keyring.gpg
|
||||||
|
|
||||||
echo "deb https://${DOMAIN}/repo/deb/fsa${RPI}/ ${VERSION_CODENAME} ${RELEASE}" > /etc/apt/sources.list.d/freeswitch.list
|
echo "Types: deb deb-src" > /etc/apt/sources.list.d/freeswitch.sources
|
||||||
echo "deb-src https://${DOMAIN}/repo/deb/fsa${RPI}/ ${VERSION_CODENAME} ${RELEASE}" >> /etc/apt/sources.list.d/freeswitch.list
|
echo "URIs: https://${DOMAIN}/repo/deb/fsa${RPI}/" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
echo "Suites: ${VERSION_CODENAME}" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
echo "Components: ${RELEASE}" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
echo "Signed-By: ${GPG_KEY}" >> /etc/apt/sources.list.d/freeswitch.sources
|
||||||
|
|
||||||
install_freeswitch "Enterprise" "${ACTION}"
|
install_freeswitch "Enterprise" "${ACTION}"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user