Skip to content
This repository was archived by the owner on Aug 25, 2021. It is now read-only.

Commit 8b3764e

Browse files
authored
fix ubuntu 18.04/10 support (#6)
1 parent ee2df6e commit 8b3764e

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

initial.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,7 @@ TOPIC_IDENT="=> "
99
case $OS in
1010
Ubuntu)
1111
OS="ubuntu"
12-
case $VER in
13-
16.04)
14-
VER_NAME="xenial"
15-
;;
16-
14.04)
17-
VER_NAME="trusty"
18-
;;
19-
12.04)
20-
VER_NAME="precise"
21-
;;
22-
*)
23-
echo "Unsupported Ubuntu ${VER}, BoxOS recommend used Debian Jessie or Ubuntu 16.04"
24-
;;
25-
esac
12+
VER_NAME="$(lsb_release -cs)"
2613
;;
2714
Debian)
2815
OS="debian"
@@ -37,7 +24,7 @@ Debian)
3724
VER_NAME="wheezy"
3825
;;
3926
*)
40-
echo "Unsupported Debian ${VER}, BoxOS recommend used Debian Jessie or Ubuntu 16.04"
27+
echo "Unsupported Debian ${VER}, BoxOS recommend used Debian Jessie or Ubuntu 18.04"
4128
;;
4229
esac
4330
;;
@@ -105,7 +92,7 @@ cat > /etc/motd <<-END
10592
_ ____ _____
10693
| | / __ \ / ____|
10794
| |__ _____ _| | | | (___
108-
| '_ \ / _ \ \/ / | | |\___ \
95+
| '_ \ / _ \ \/ / | | |\___ \
10996
| |_) | (_) > <| |__| |____) |
11097
|_.__/ \___/_/\_\\\____/|_____/
11198
============ Linux Containers

0 commit comments

Comments
 (0)