mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 01:44:43 +01:00
docs: install: apt snippet: idempotent, bash compat, multiarch compat
Co-authored-by: Janis Streib <me@janis-streib.de> Co-authored-by: Christian Schwarz <me@cschwarz.com>
This commit is contained in:
parent
dc39c819a3
commit
fcf16a163a
@ -62,12 +62,12 @@ The fingerprint of the signing key for Debian / Ubuntu packages is ``E101 418F D
|
||||
It is available at ``https://zrepl.cschwarz.com/apt/apt-key.asc``.
|
||||
|
||||
::
|
||||
|
||||
CODENAME="$(lsb_release -i -s | tr '[:upper:]' '[:lower:]') $(lsb_release -c -s | tr '[:upper:]' '[:lower:]')"
|
||||
echo -n "Please confirm Distro and Codename by pressing ENTER: $CODENAME"
|
||||
read -n _unused_
|
||||
curl https://zrepl.cschwarz.com/apt/apt-key.asc | apt-key add -
|
||||
echo "deb https://zrepl.cschwarz.com/apt/$CODENAME main" >> /etc/apt/sources.list
|
||||
apt update && apt install curl gnupg lsb-release; \
|
||||
ARCH="$(dpkg --print-architecture)"; \
|
||||
CODENAME="$(lsb_release -i -s | tr '[:upper:]' '[:lower:]') $(lsb_release -c -s | tr '[:upper:]' '[:lower:]')"; \
|
||||
echo "Using Distro and Codename: $CODENAME"; \
|
||||
(curl https://zrepl.cschwarz.com/apt/apt-key.asc | apt-key add -) && \
|
||||
(echo "deb [arch=$ARCH] https://zrepl.cschwarz.com/apt/$CODENAME main" > /etc/apt/sources.list.d/zrepl.list) && \
|
||||
apt update
|
||||
|
||||
Note that until zrepl reaches 1.0, all APT repositories will be updated to the latest zrepl release immediately.
|
||||
|
Loading…
Reference in New Issue
Block a user