File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,14 @@ if [[ $EUID -ne 0 ]]; then
8
8
exit 1
9
9
fi
10
10
11
- # Check that we are running on Ubuntu 20.04 LTS (or 20.04.xx).
12
- if [ " $( lsb_release --id --short ) " != " Ubuntu" ] || [ " $( lsb_release --release --short ) " != " 22.04" ]; then
11
+ # Check that we are running on Ubuntu 22.04 LTS (or 22.04.xx).
12
+ # Pull in the variables defined in /etc/os-release but in a
13
+ # namespace to avoid polluting our variables.
14
+ source <( cat /etc/os-release | sed s/^/OS_RELEASE_/)
15
+ if [ " ${OS_RELEASE_ID:- } " != " ubuntu" ] || [ " ${OS_RELEASE_VERSION_ID:- } " != " 22.04" ]; then
13
16
echo " Mail-in-a-Box only supports being installed on Ubuntu 22.04, sorry. You are running:"
14
17
echo
15
- lsb_release --description --short
18
+ echo " ${OS_RELEASE_ID :- " Unknown linux distribution " } ${OS_RELEASE_VERSION_ID :- } "
16
19
echo
17
20
echo " We can't write scripts that run on every possible setup, sorry."
18
21
exit 1
You can’t perform that action at this time.
0 commit comments