Skip to content

Commit

Permalink
installer: make sources.list URL overriding possible
Browse files Browse the repository at this point in the history
This is for the purposes of automated testing of non-mainline package
builds.
  • Loading branch information
andrey-utkin committed Mar 6, 2024
1 parent 344b301 commit 8bfdb7b
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions installer/v3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ bionic_install()
apt update
apt -y install gpg python3-distutils wget
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
apt -y update
apt -y install bluecherry
systemctl restart bluecherry
Expand All @@ -39,7 +40,8 @@ focal_install()
# pip install pyopenssl --upgrade
pip3 install pyOpenSSL --upgrade
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
apt -y update
# apt -y install mariadb-server-10.3
apt -y install bluecherry
Expand All @@ -51,7 +53,8 @@ groovy_install()
{
apt -y install gpg wget
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
apt -y update
apt -y install mariadb-server bluecherry
systemctl restart bluecherry
Expand All @@ -62,7 +65,8 @@ hirsute_install()
{
apt -y install gpg wget
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
apt -y update
apt -y install mariadb-server bluecherry
systemctl restart bluecherry
Expand All @@ -77,7 +81,8 @@ jammy_install()
# wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | sudo tee /etc/apt/trusted.gpg.d/bluecherry.asc
VERSION_CODENAME=jammy # don't say "vera" for Linux Mint at this point
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
add-apt-repository ppa:ondrej/php -y
apt -y update
apt -y install php7.4-fpm php7.4-sqlite3 php7.4-curl php7.4-mysql php7.4-gd php-mail php-mail-mime php-mysql php7.4-fpm php7.4-mysql
Expand Down Expand Up @@ -110,7 +115,8 @@ buster_install()
pip3 install --user --upgrade pip
wget -q https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 -O- | apt-key add -
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
apt-get -y update
apt-get -y install mysql-server bluecherry
}
Expand All @@ -122,7 +128,8 @@ bullseye_install()
apt-get -y install gnupg sudo sudo python3-distutils wget
wget -q https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 -O- | apt-key add -
wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add -
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list
: "${SRCLIST_URL:=https://dl.bluecherrydvr.com/sources.list.d/bluecherry-"$VERSION_CODENAME"-unstable.list}"
wget --output-document=/etc/apt/sources.list.d/bluecherry-"$VERSION_CODENAME".list "$SRCLIST_URL"
apt-get -y update
apt-get -y install mariadb-server bluecherry
# apt-get install mariadb-server
Expand Down

0 comments on commit 8bfdb7b

Please sign in to comment.