mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-02 18:58:46 +00:00
Update Redis repository
This commit is contained in:
@@ -28,18 +28,15 @@ function add_redis_repo() {
|
||||
case "${DISTRIB_NAME}" in
|
||||
debian | ubuntu)
|
||||
if [[ ! -f "/etc/apt/sources.list.d/redis-${RELEASE_NAME}.list" ]]; then
|
||||
run bash -c "curl -fsSL https://packages.redis.io/gpg | gpg --dearmor --yes -o /usr/share/keyrings/redis-archive-keyring.gpg"
|
||||
run touch "/etc/apt/sources.list.d/redis-${RELEASE_NAME}.list"
|
||||
run bash -c "echo 'deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb ${RELEASE_NAME} main' | tee /etc/apt/sources.list.d/redis-${RELEASE_NAME}.list"
|
||||
run touch "/etc/apt/sources.list.d/redis-${RELEASE_NAME}.list" && \
|
||||
run bash -c "echo 'deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb ${RELEASE_NAME} main' | tee /etc/apt/sources.list.d/redis-${RELEASE_NAME}.list" && \
|
||||
run bash -c "curl -fsSL https://packages.redis.io/gpg | gpg --dearmor --yes -o /usr/share/keyrings/redis-archive-keyring.gpg" && \
|
||||
run chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg && \
|
||||
run apt-get update -q -y
|
||||
else
|
||||
info "Redis repository already exists."
|
||||
fi
|
||||
;;
|
||||
#ubuntu)
|
||||
# run add-apt-repository -y ppa:redislabs/redis && \
|
||||
# run apt-get update -q -y
|
||||
#;;
|
||||
*)
|
||||
fail "Unable to add Redis repo, this GNU/Linux distribution is not supported."
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user