Merge pull request #1514 from openziti/linux-install-script

tweak Linux package install.bash
This commit is contained in:
Kenneth Bingham
2023-11-16 13:57:40 -05:00
committed by GitHub
+5 -5
View File
@@ -11,7 +11,7 @@ checkSum() {
break
fi
done
if [ -z "$SUMCMD" ]; then
if [ -z "${SUMCMD:-}" ]; then
echo "ERROR: No checksum command found. Tried 'sha256sum', 'md5sum'." >&2
exit 1
fi
@@ -26,7 +26,7 @@ installRedHat(){
break
fi
done
if [ -z "$PACKAGER" ]; then
if [ -z "${PACKAGER:-}" ]; then
echo "ERROR: No package manager found. Tried 'dnf', 'yum'." >&2
exit 1
fi
@@ -70,7 +70,7 @@ installDebian(){
break
fi
done
if [ -z "$GNUPGCMD" ]; then
if [ -z "${GNUPGCMD:-}" ]; then
echo "ERROR: No GnuPG CLI found. Tried 'gpg', gpg2." >&2
exit 1
fi
@@ -80,7 +80,7 @@ installDebian(){
break
fi
done
if [ -z "$GETTER" ]; then
if [ -z "${GETTER:-}" ]; then
echo "ERROR: No http client found. Tried 'wget', 'curl'." >&2
exit 1
else
@@ -97,7 +97,7 @@ installDebian(){
# always update the pubkey
$GETTERCMD https://get.openziti.io/tun/package-repos.gpg \
| $GNUPGCMD --batch --yes --dearmor --output /usr/share/keyrings/openziti.gpg
chmod +r /usr/share/keyrings/openziti.gpg
chmod a+r /usr/share/keyrings/openziti.gpg
local REPOSRC="deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/${ZITIPAX_DEB:-zitipax-openziti-deb-stable} debian main"