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