mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-10 14:47:20 +00:00
* switch installer to new distri
* re-generate script
* fix change capitaisation behaviour
* fix installer
(cherry picked from commit 04b5b69b69)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user