Switch installer source; fix package install (#12824) (#12829)

* switch installer to new distri

* re-generate script

* fix change capitaisation behaviour

* fix installer

(cherry picked from commit 04b5b69b69)
This commit is contained in:
Matthias Mair
2026-09-09 09:34:00 +10:00
committed by GitHub
parent 0cfc1f5b2d
commit 718aed27ee
4 changed files with 42 additions and 21 deletions
+5 -4
View File
@@ -5,7 +5,7 @@ publisher=${args[publisher]}
no_call=${args[--no-call]}
dry_run=${args[--dry-run]}
REQS="wget apt-transport-https curl gpg"
REQS="curl"
function do_call() {
if [[ $dry_run ]]; then
@@ -115,10 +115,11 @@ for pkg in $REQS; do
done
echo "### Getting and adding key"
curl -fsSL https://dl.packager.io/srv/$publisher/InvenTree/key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/pkgr-inventree.gpg > /dev/null
sudo curl -fsSL "https://go.packager.io/srv/deb/$publisher/InvenTree/gpg-key.gpg" -o /usr/share/keyrings/InvenTree.gpg
echo "### Adding package source"
SOURCE_URL="deb [signed-by=/etc/apt/trusted.gpg.d/pkgr-inventree.gpg] https://dl.packager.io/srv/deb/$publisher/InvenTree/$source_url/$DIST_OS $DIST_VER main"
echo "$SOURCE_URL" | tee /etc/apt/sources.list.d/inventree.list > /dev/null
SOURCE_URL="https://go.packager.io/srv/$publisher/InvenTree/$source_url/installer/$DIST_OS/$DIST_VER.list"
sudo curl -fsSL "$SOURCE_URL" > /etc/apt/sources.list.d/inventree.list
echo "### Updating package lists"
do_call "sudo apt-get update"