Skip to content

Commit 07fb73a

Browse files
authored
Update installer scripts, README.md & installers.toml
1 parent e1875cb commit 07fb73a

14 files changed

+299
-28
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This will install Git on your machine!
2828
|Pip3 |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/pip3 |
2929
|gCloud |No |No |No |No |No |Yes |https://installer.to/gcloud |
3030
|Nginx |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/nginx |
31+
|Atom |Yes|Yes|Yes |Yes|Yes|No |https://installer.to/atom |
3132
|Helm |No |No |No |No |No |Yes |https://installer.to/helm |
3233
|Fabric |No |No |No |No |No |Yes |https://installer.to/hlf |
3334
|Docker |Yes|Yes|No |No |No |No |https://installer.to/docker |

installers.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ installers = "dnf,pacman,apt,apk,yum"
2828
name = "Nginx"
2929
description = "Nginx server"
3030

31+
[atom]
32+
installers = "dnf,pacman,apt,apk,yum"
33+
name = "Atom"
34+
description = "A hackable text editor for the 21st Century"
35+
3136
[helm]
3237
installers = "curl"
3338
name = "Helm"

installers/atom/installer.apk.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;$SUDO apk add atom;;;

installers/atom/installer.apk.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
SUDO_CMD=$(which sudo)
4+
5+
USER="$(id -un 2>/dev/null || true)"
6+
SUDO=''
7+
if [ "$USER" != 'root' ]; then
8+
if [ ! -z $SUDO_CMD ]; then
9+
SUDO='sudo'
10+
else
11+
cat >&2 <<-'EOF'
12+
Error: this installer needs the ability to run commands as root.
13+
We are unable to find "sudo". Make sure its available to make this happen
14+
EOF
15+
exit 1
16+
fi
17+
fi
18+
19+
RESET=''
20+
RED=''
21+
GREEN=''
22+
YELLOW=''
23+
log () {
24+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
25+
}
26+
info () {
27+
log "$GREEN INFO$RESET $1"
28+
}
29+
warn () {
30+
log "$YELLOW WARN$RESET $1"
31+
}
32+
error () {
33+
log "$RED ERROR$RESET $1"
34+
}
35+
36+
$SUDO apk add atom
37+

installers/atom/installer.apt.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | $SUDO apt-key add -;$SUDO sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list';$SUDO apt-get update;$SUDO apt-get install atom;;;

installers/atom/installer.apt.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
3+
SUDO_CMD=$(which sudo)
4+
5+
USER="$(id -un 2>/dev/null || true)"
6+
SUDO=''
7+
if [ "$USER" != 'root' ]; then
8+
if [ ! -z $SUDO_CMD ]; then
9+
SUDO='sudo'
10+
else
11+
cat >&2 <<-'EOF'
12+
Error: this installer needs the ability to run commands as root.
13+
We are unable to find "sudo". Make sure its available to make this happen
14+
EOF
15+
exit 1
16+
fi
17+
fi
18+
19+
RESET=''
20+
RED=''
21+
GREEN=''
22+
YELLOW=''
23+
log () {
24+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
25+
}
26+
info () {
27+
log "$GREEN INFO$RESET $1"
28+
}
29+
warn () {
30+
log "$YELLOW WARN$RESET $1"
31+
}
32+
error () {
33+
log "$RED ERROR$RESET $1"
34+
}
35+
36+
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | $SUDO apt-key add -
37+
$SUDO sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
38+
$SUDO apt-get update
39+
$SUDO apt-get install atom
40+

installers/atom/installer.dnf.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;$SUDO sh -c 'echo -e "[Atom];name=Atom Editor;baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch;enabled=1;gpgcheck=0;repo_gpgcheck=1;gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';$SUDO dnf install atom;;;

installers/atom/installer.dnf.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/sh
2+
3+
SUDO_CMD=$(which sudo)
4+
5+
USER="$(id -un 2>/dev/null || true)"
6+
SUDO=''
7+
if [ "$USER" != 'root' ]; then
8+
if [ ! -z $SUDO_CMD ]; then
9+
SUDO='sudo'
10+
else
11+
cat >&2 <<-'EOF'
12+
Error: this installer needs the ability to run commands as root.
13+
We are unable to find "sudo". Make sure its available to make this happen
14+
EOF
15+
exit 1
16+
fi
17+
fi
18+
19+
RESET=''
20+
RED=''
21+
GREEN=''
22+
YELLOW=''
23+
log () {
24+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
25+
}
26+
info () {
27+
log "$GREEN INFO$RESET $1"
28+
}
29+
warn () {
30+
log "$YELLOW WARN$RESET $1"
31+
}
32+
error () {
33+
log "$RED ERROR$RESET $1"
34+
}
35+
36+
$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
37+
$SUDO sh -c 'echo -e "[Atom]
38+
name=Atom Editor
39+
baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch
40+
enabled=1
41+
gpgcheck=0
42+
repo_gpgcheck=1
43+
gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
44+
$SUDO dnf install atom
45+

installers/atom/installer.min.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
;YUM_CMD=$(which yum) # yum package manager for RHEL & CentOS;DNF_CMD=$(which dnf) # dnf package manager for new RHEL & CentOS;APT_GET_CMD=$(which apt-get) # apt package manager for Ubuntu & other Debian based distributions;PACMAN_CMD=$(which pacman) # pacman package manager for ArchLinux;APK_CMD=$(which apk) # apk package manager for Alpine;;if [ ! -z $APT_GET_CMD ]; then;wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -;sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list';sudo apt-get update;sudo apt-get install atom;elif [ ! -z $DNF_CMD ]; then;sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;sudo sh -c 'echo -e "[Atom]; name=Atom Editor; baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch; enabled=1; gpgcheck=0; repo_gpgcheck=1; gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';sudo dnf install atom;elif [ ! -z $YUM_CMD ]; then;sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;sudo sh -c 'echo -e "[Atom]; name=Atom Editor; baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch; enabled=1; gpgcheck=0; repo_gpgcheck=1; gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';sudo dnf install atom;elif [ ! -z $PACMAN_CMD ]; then;sudo pacman -S atom;elif [ ! -z $APK_CMD ]; then;sudo apk add atom;else echo "Couldn't install package";exit 1;;fi;;atom --version;;
2+
;;CURL_CMD=$(which curl);YUM_CMD=$(which yum);DNF_CMD=$(which dnf);APT_GET_CMD=$(which apt-get);PACMAN_CMD=$(which pacman);APK_CMD=$(which apk);GIT_CMD=$(which git);;SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;if [ ! -z $DNF_CMD ]; then;$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;$SUDO sh -c 'echo -e "[Atom];name=Atom Editor;baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch;enabled=1;gpgcheck=0;repo_gpgcheck=1;gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';$SUDO dnf install atom;;elif [ ! -z $PACMAN_CMD ]; then;$SUDO pacman -S atom;;elif [ ! -z $APT_GET_CMD ]; then;wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | $SUDO apt-key add -;$SUDO sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list';$SUDO apt-get update;$SUDO apt-get install atom;;elif [ ! -z $APK_CMD ]; then;$SUDO apk add atom;;elif [ ! -z $YUM_CMD ]; then;$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;$SUDO sh -c 'echo -e "[Atom];name=Atom Editor;baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch;enabled=1;gpgcheck=0;repo_gpgcheck=1;gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';$SUDO dnf install atom;;else echo "Couldn't install package";exit 1;;fi;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;$SUDO pacman -S atom;;;

installers/atom/installer.pacman.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
SUDO_CMD=$(which sudo)
4+
5+
USER="$(id -un 2>/dev/null || true)"
6+
SUDO=''
7+
if [ "$USER" != 'root' ]; then
8+
if [ ! -z $SUDO_CMD ]; then
9+
SUDO='sudo'
10+
else
11+
cat >&2 <<-'EOF'
12+
Error: this installer needs the ability to run commands as root.
13+
We are unable to find "sudo". Make sure its available to make this happen
14+
EOF
15+
exit 1
16+
fi
17+
fi
18+
19+
RESET=''
20+
RED=''
21+
GREEN=''
22+
YELLOW=''
23+
log () {
24+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
25+
}
26+
info () {
27+
log "$GREEN INFO$RESET $1"
28+
}
29+
warn () {
30+
log "$YELLOW WARN$RESET $1"
31+
}
32+
error () {
33+
log "$RED ERROR$RESET $1"
34+
}
35+
36+
$SUDO pacman -S atom
37+

installers/atom/installer.sh

Lines changed: 78 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,82 @@
11
#!/bin/sh
2+
23

3-
YUM_CMD=$(which yum) # yum package manager for RHEL & CentOS
4-
DNF_CMD=$(which dnf) # dnf package manager for new RHEL & CentOS
5-
APT_GET_CMD=$(which apt-get) # apt package manager for Ubuntu & other Debian based distributions
6-
PACMAN_CMD=$(which pacman) # pacman package manager for ArchLinux
7-
APK_CMD=$(which apk) # apk package manager for Alpine
4+
CURL_CMD=$(which curl)
5+
YUM_CMD=$(which yum)
6+
DNF_CMD=$(which dnf)
7+
APT_GET_CMD=$(which apt-get)
8+
PACMAN_CMD=$(which pacman)
9+
APK_CMD=$(which apk)
10+
GIT_CMD=$(which git)
811

9-
if [ ! -z $APT_GET_CMD ]; then
10-
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
11-
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
12-
sudo apt-get update
13-
sudo apt-get install atom
14-
elif [ ! -z $DNF_CMD ]; then
15-
sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
16-
sudo 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'
17-
sudo dnf install atom
18-
elif [ ! -z $YUM_CMD ]; then
19-
sudo rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
20-
sudo 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'
21-
sudo dnf install atom
22-
elif [ ! -z $PACMAN_CMD ]; then
23-
sudo pacman -S atom
24-
elif [ ! -z $APK_CMD ]; then
25-
sudo apk add atom
26-
else
27-
echo "Couldn't install package"
28-
exit 1;
29-
fi
12+
SUDO_CMD=$(which sudo)
3013

31-
atom --version
14+
USER="$(id -un 2>/dev/null || true)"
15+
SUDO=''
16+
if [ "$USER" != 'root' ]; then
17+
if [ ! -z $SUDO_CMD ]; then
18+
SUDO='sudo'
19+
else
20+
cat >&2 <<-'EOF'
21+
Error: this installer needs the ability to run commands as root.
22+
We are unable to find "sudo". Make sure its available to make this happen
23+
EOF
24+
exit 1
25+
fi
26+
fi
27+
28+
RESET=''
29+
RED=''
30+
GREEN=''
31+
YELLOW=''
32+
log () {
33+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
34+
}
35+
info () {
36+
log "$GREEN INFO$RESET $1"
37+
}
38+
warn () {
39+
log "$YELLOW WARN$RESET $1"
40+
}
41+
error () {
42+
log "$RED ERROR$RESET $1"
43+
}
44+
45+
if [ ! -z $DNF_CMD ]; then
46+
$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
47+
$SUDO sh -c 'echo -e "[Atom]
48+
name=Atom Editor
49+
baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch
50+
enabled=1
51+
gpgcheck=0
52+
repo_gpgcheck=1
53+
gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
54+
$SUDO dnf install atom
55+
56+
elif [ ! -z $PACMAN_CMD ]; then
57+
$SUDO pacman -S atom
58+
59+
elif [ ! -z $APT_GET_CMD ]; then
60+
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | $SUDO apt-key add -
61+
$SUDO sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
62+
$SUDO apt-get update
63+
$SUDO apt-get install atom
64+
65+
elif [ ! -z $APK_CMD ]; then
66+
$SUDO apk add atom
67+
68+
elif [ ! -z $YUM_CMD ]; then
69+
$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
70+
$SUDO sh -c 'echo -e "[Atom]
71+
name=Atom Editor
72+
baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch
73+
enabled=1
74+
gpgcheck=0
75+
repo_gpgcheck=1
76+
gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
77+
$SUDO dnf install atom
78+
79+
else
80+
echo "Couldn't install package"
81+
exit 1;
82+
fi

installers/atom/installer.yum.min.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
;SUDO_CMD=$(which sudo);;USER="$(id -un 2>/dev/null || true)";SUDO='';if [ "$USER" != 'root' ]; then;if [ ! -z $SUDO_CMD ]; then;SUDO='sudo';else cat >&2 <<-'EOF';Error: this installer needs the ability to run commands as root.;We are unable to find "sudo". Make sure its available to make this happen;EOF;exit 1;fi;fi;;RESET='';RED='';GREEN='';YELLOW='';log () { echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"; };info () { log "$GREEN INFO$RESET $1"; };warn () { log "$YELLOW WARN$RESET $1"; };error () { log "$RED ERROR$RESET $1"; };;$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey;$SUDO sh -c 'echo -e "[Atom];name=Atom Editor;baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch;enabled=1;gpgcheck=0;repo_gpgcheck=1;gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo';$SUDO dnf install atom;;;

installers/atom/installer.yum.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/sh
2+
3+
SUDO_CMD=$(which sudo)
4+
5+
USER="$(id -un 2>/dev/null || true)"
6+
SUDO=''
7+
if [ "$USER" != 'root' ]; then
8+
if [ ! -z $SUDO_CMD ]; then
9+
SUDO='sudo'
10+
else
11+
cat >&2 <<-'EOF'
12+
Error: this installer needs the ability to run commands as root.
13+
We are unable to find "sudo". Make sure its available to make this happen
14+
EOF
15+
exit 1
16+
fi
17+
fi
18+
19+
RESET=''
20+
RED=''
21+
GREEN=''
22+
YELLOW=''
23+
log () {
24+
echo "[`date "+%Y.%m.%d-%H:%M:%S%Z"`]$1 $2"
25+
}
26+
info () {
27+
log "$GREEN INFO$RESET $1"
28+
}
29+
warn () {
30+
log "$YELLOW WARN$RESET $1"
31+
}
32+
error () {
33+
log "$RED ERROR$RESET $1"
34+
}
35+
36+
$SUDO rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
37+
$SUDO sh -c 'echo -e "[Atom]
38+
name=Atom Editor
39+
baseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch
40+
enabled=1
41+
gpgcheck=0
42+
repo_gpgcheck=1
43+
gpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
44+
$SUDO dnf install atom
45+

0 commit comments

Comments
 (0)