pull/109/head
midoks 3 years ago
parent 0561a604af
commit 08b2710976
  1. 11
      scripts/install.sh
  2. 2
      scripts/install/ubuntu.sh
  3. 9
      scripts/update.sh

@ -12,6 +12,13 @@ startTime=`date +%s`
_os=`uname` _os=`uname`
echo "use system: ${_os}" echo "use system: ${_os}"
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if [ ${_os} == "Darwin" ]; then if [ ${_os} == "Darwin" ]; then
OSNAME='macos' OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
@ -27,11 +34,7 @@ elif grep -Eqi "Amazon Linux AMI" /etc/issue || grep -Eq "Amazon Linux AMI" /etc
elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
OSNAME='debian' OSNAME='debian'
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
OSNAME='ubuntu' OSNAME='ubuntu'
sudo ln -sf /bin/bash /bin/sh
# sudo dpkg-reconfigure dash
elif grep -Eqi "Raspbian" /etc/issue || grep -Eq "Raspbian" /etc/*-release; then elif grep -Eqi "Raspbian" /etc/issue || grep -Eq "Raspbian" /etc/*-release; then
OSNAME='raspbian' OSNAME='raspbian'
elif grep -Eqi "Deepin" /etc/issue || grep -Eq "Deepin" /etc/*-release; then elif grep -Eqi "Deepin" /etc/issue || grep -Eq "Deepin" /etc/*-release; then

@ -39,7 +39,7 @@ fi
if [ "${isVersion}" == '' ];then if [ "${isVersion}" == '' ];then
if [ ! -f "/etc/init.d/iptables" ];then if [ ! -f "/etc/init.d/iptables" ];then
yum install firewalld -y apt install firewalld
systemctl enable firewalld systemctl enable firewalld
systemctl start firewalld systemctl start firewalld

@ -9,6 +9,11 @@ startTime=`date +%s`
_os=`uname` _os=`uname`
echo "use system: ${_os}" echo "use system: ${_os}"
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if [ "${_os}" == "Darwin" ]; then if [ "${_os}" == "Darwin" ]; then
OSNAME='macos' OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
@ -24,11 +29,7 @@ elif grep -Eqi "Amazon Linux AMI" /etc/issue || grep -Eq "Amazon Linux AMI" /etc
elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
OSNAME='debian' OSNAME='debian'
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
OSNAME='ubuntu' OSNAME='ubuntu'
sudo ln -sf /bin/bash /bin/sh
# sudo dpkg-reconfigure dash
elif grep -Eqi "Raspbian" /etc/issue || grep -Eq "Raspbian" /etc/*-release; then elif grep -Eqi "Raspbian" /etc/issue || grep -Eq "Raspbian" /etc/*-release; then
OSNAME='raspbian' OSNAME='raspbian'
elif grep -Eqi "Deepin" /etc/issue || grep -Eq "Deepin" /etc/*-release; then elif grep -Eqi "Deepin" /etc/issue || grep -Eq "Deepin" /etc/*-release; then

Loading…
Cancel
Save