Fix CentOS 6 and CentOS 7

This commit is contained in:
Scott E. Graves
2019-04-19 16:26:21 -05:00
parent 7ae1505eb4
commit f6db3ac3f1
3 changed files with 16 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
* Linux distribution support
* Arch Linux
* Bodhi 5.0.0
* CentOS 6
* CentOS 7
* Debian 9
* Elementary OS 5.0
* Fedora 28

View File

@@ -12,6 +12,8 @@ Repertory allows you to mount Sia and/or SiaPrime blockchain storage solutions v
* Linux 64-bit Distributions:
* Arch Linux
* Bodhi 5.0.0
* CentOS 7
* CentOS 6
* Debian 9
* Elementary OS 5.0
* Fedora 28

View File

@@ -8,7 +8,18 @@ function resetDistVer {
DISTVER=
}
if [ -f /etc/fedora-release ]; then
if [ -f /etc/centos-release ]; then
. /etc/os-release
if [ "$VERSION_ID" == "7" ]; then
DISTNAME=centos
DISTVER=7
elif [ "$VERSION_ID" == "6" ]; then
DISTNAME=centos
DISTVER=6
else
resetDistVer
fi
elif [ -f /etc/fedora-release ]; then
. /etc/os-release
if [ "$VERSION_ID" == "29" ]; then
DISTNAME=fedora