From a069d625b1efe0c4049331efc01a1c1b8b0b7912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Wed, 21 Feb 2018 20:51:35 +0000 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'files/atom=5Fredhat?= =?UTF-8?q?=5Finstall.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/atom_redhat_install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/files/atom_redhat_install.sh b/files/atom_redhat_install.sh index 4051a15..4b9ef49 100644 --- a/files/atom_redhat_install.sh +++ b/files/atom_redhat_install.sh @@ -1,5 +1,8 @@ #!/bin/bash -URLROOT="https://github.com/atom/atom/releases/download/v1.24.0" -LEPKG="atom.x86_64.rpm" -cd /tmp && wget -q -t 5 -T 5 -w 5 -4 -nd "$URLROOT/$LEPKG" && dnf install -y /tmp/$LEPKG && exit 0 +#URLROOT="https://github.com/atom/atom/releases/download/v1.24.0" +#LEPKG="atom.x86_64.rpm" +#cd /tmp && wget -q -t 5 -T 5 -w 5 -4 -nd "$URLROOT/$LEPKG" && dnf install -y /tmp/$LEPKG && exit 0 + +rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey && sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo' && \ +dnf install atom -u && exit 0 exit 1 \ No newline at end of file