Update install.sh

pull/125/head
midoks 3 years ago
parent c349684d1c
commit 8b85ef108f
  1. 23
      plugins/varnish/install.sh

@ -7,27 +7,14 @@ rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath")
install_tmp=${rootPath}/tmp/mw_install.pl install_tmp=${rootPath}/tmp/mw_install.pl
VERSION=$2 VERSION=$2
_os=`uname`
if [ ${_os} == "Darwin" ]; then bash ${rootPath}/scripts/getos.sh
OSNAME='macos' OSNAME=`cat ${rootPath}/data/osname.pl`
elif grep -Eq "openSUSE" /etc/*-release; then OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
OSNAME='opensuse'
elif grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
elif grep -Eq "Fedora" /etc/*-release; then
OSNAME='fedora'
elif grep -Eq "Debian" /etc/*-release; then
OSNAME='debian'
elif grep -Eq "Ubuntu" /etc/*-release; then
OSNAME='ubuntu'
else
OSNAME='unknow'
fi
Install_varnish() Install_varnish()
{ {

Loading…
Cancel
Save