Skip to content

Commit 5648217

Browse files
committed
Installer script: annotate which distro releases code handles
1 parent 095e13e commit 5648217

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

installer/v3.sh

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ check_distro()
4040
echo $DISTRO
4141
}
4242

43+
# Ubuntu 14.04
4344
trusty_install()
4445
{
4546
apt -y install gpg wget
@@ -50,6 +51,7 @@ trusty_install()
5051
service bluecherry restart
5152
}
5253

54+
# Ubuntu 18.04
5355
bionic_install()
5456
{
5557
apt update
@@ -61,6 +63,7 @@ bionic_install()
6163
systemctl restart bluecherry
6264
}
6365

66+
# Ubuntu 16.04
6467
xenial_install()
6568
{
6669
apt -y install gpg wget
@@ -71,8 +74,7 @@ xenial_install()
7174
systemctl restart bluecherry
7275
}
7376

74-
# 20.04
75-
77+
# Ubuntu 20.04
7678
focal_install()
7779
{
7880
apt-get update
@@ -93,8 +95,7 @@ focal_install()
9395
systemctl restart bluecherry
9496
}
9597

96-
# 20.10
97-
98+
# Ubuntu 20.10
9899
groovy_install()
99100
{
100101
apt -y install gpg wget
@@ -105,8 +106,7 @@ groovy_install()
105106
systemctl restart bluecherry
106107
}
107108

108-
# 21.04
109-
109+
# Ubuntu 21.04
110110
hirsute_install()
111111
{
112112
apt -y install gpg wget
@@ -117,8 +117,8 @@ hirsute_install()
117117
systemctl restart bluecherry
118118
}
119119

120-
# 22.04
121-
120+
# Ubuntu 22.04
121+
# Also used for Mint 21.1 Vera, based on Ubuntu 22.04 Jammy
122122
jammy_install()
123123
{
124124
apt-get update
@@ -149,6 +149,7 @@ centos_7_install()
149149
systemctl restart bluecherry
150150
}
151151

152+
# Debian 8
152153
jessie_install()
153154
{
154155
apt -y install gpg wget
@@ -158,6 +159,7 @@ jessie_install()
158159
apt-get -y install bluecherry
159160
}
160161

162+
# Debian 7
161163
wheezy_install()
162164
{
163165
apt -y install gpg wget
@@ -167,6 +169,7 @@ wheezy_install()
167169
apt-get -y install bluecherry
168170
}
169171

172+
# Debian 9
170173
stretch_install()
171174
{
172175
apt -y install gpg wget
@@ -176,6 +179,7 @@ stretch_install()
176179
apt-get -y install bluecherry
177180
}
178181

182+
# Debian 10
179183
buster_install()
180184
{
181185
apt-get -y update
@@ -190,6 +194,7 @@ buster_install()
190194
apt-get -y install mysql-server bluecherry
191195
}
192196

197+
# Debian 11
193198
bullseye_install()
194199
{
195200
apt-get -y update
@@ -207,21 +212,21 @@ bullseye_install()
207212

208213

209214
if [ $(check_distro) == "bionic" ]; then
210-
bionic_install
215+
bionic_install # Ubuntu 18.04
211216
elif [ $(check_distro) == "buster" ]; then
212-
buster_install
217+
buster_install # Debian 10
213218
elif [ $(check_distro) == "focal" ]; then
214-
focal_install
219+
focal_install # Ubuntu 20.04
215220
elif [ $(check_distro) == "jammy" ]; then
216-
jammy_install
221+
jammy_install # Ubuntu 22.04
217222
elif [ $(check_distro) == "vera" ]; then
218-
jammy_install
223+
jammy_install # Mint 21.1 Vera, based on Ubuntu 22.04 Jammy
219224
elif [ $(check_distro) == "groovy" ]; then
220-
groovy_install
225+
groovy_install # Ubuntu 20.10
221226
elif [ $(check_distro) == "hirsute" ]; then
222-
hirsute_install
227+
hirsute_install # Ubuntu 21.04
223228
elif [ $(check_distro) == "bullseye" ]; then
224-
bullseye_install
229+
bullseye_install # Debian 11
225230
#elif [ $(check_distro) == "centos_7" ]; then
226231
# centos_7_install
227232
else

0 commit comments

Comments
 (0)