mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Amazon linux support
This commit is contained in:
parent
26c311b773
commit
4cc3c1d287
12 changed files with 34 additions and 31 deletions
|
@ -33,7 +33,11 @@ esac
|
|||
|
||||
# Detecting release
|
||||
if [ "$version" = 'rhel' ]; then
|
||||
release=$(grep -o "[0-9]" /etc/redhat-release |head -n1)
|
||||
if [ -e '/etc/redhat-release' ]; then
|
||||
release=$(grep -o "[0-9]" /etc/redhat-release |head -n1)
|
||||
else
|
||||
release=6
|
||||
fi
|
||||
fi
|
||||
if [ "$version" = 'ubuntu' ]; then
|
||||
release=$(lsb_release -r |awk '{print $2}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue