pull/119/head
midoks 3 years ago
parent 6a990b5030
commit 87a8e4a0ce
  1. 10
      scripts/install.sh
  2. 4
      scripts/install/centos.sh
  3. 2
      scripts/install/debian.sh
  4. 2
      scripts/install/ubuntu.sh
  5. 9
      scripts/install_cn.sh
  6. 10
      scripts/install_dev.sh
  7. 9
      scripts/update.sh
  8. 5
      scripts/update/debian.sh
  9. 4
      scripts/update/ubuntu.sh
  10. 9
      scripts/update_cn.sh
  11. 9
      scripts/update_dev.sh

@ -18,16 +18,6 @@ if [ "$EUID" -ne 0 ]
exit
fi
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then
OSNAME='macos'

@ -64,11 +64,9 @@ if [ ! -f /etc/init.d/iptables ];then
sed -i 's#AllowZoneDrifting=yes#AllowZoneDrifting=no#g' /etc/firewalld/firewalld.conf
firewall-cmd --reload
fi
#安装时不开启
systemctl stop firewalld
fi
yum groupinstall -y "Development Tools"
yum install -y epel-release

@ -12,7 +12,7 @@ LANG=en_US.UTF-8
# WHITE='\e[1;37m' # 白色
# NC='\e[0m' # 没有颜色
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
if grep -Eq "Debian" /etc/*-release; then
ln -sf /bin/bash /bin/sh
fi

@ -3,7 +3,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
if grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi

@ -18,15 +18,6 @@ if [ "$EUID" -ne 0 ]
exit
fi
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then

@ -18,16 +18,6 @@ if [ "$EUID" -ne 0 ]
exit
fi
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then

@ -14,15 +14,6 @@ if [ "$EUID" -ne 0 ]
exit
fi
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then
OSNAME='macos'

@ -3,6 +3,11 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
if grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
cd /www/server/mdserver-web/scripts && bash lib.sh
chmod 755 /www/server/mdserver-web/data

@ -3,6 +3,10 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
if grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
cd /www/server/mdserver-web/scripts && bash lib.sh

@ -14,15 +14,6 @@ if [ "$EUID" -ne 0 ]
exit
fi
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then

@ -14,15 +14,6 @@ if [ "$EUID" -ne 0 ]
exit
fi
if grep -Eq "Ubuntu" /etc/*-release && [ ! -f /bin/sh ]; then
sudo ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eq "Debian" /etc/*-release && [ ! -f /bin/sh ]; then
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then
OSNAME='macos'

Loading…
Cancel
Save