update authorization

pull/109/head
uselibrary 3 years ago
parent be9b63bef3
commit cb347e2124
  1. 9
      scripts/update.sh
  2. 9
      scripts/update_cn.sh
  3. 9
      scripts/update_dev.sh

@ -9,13 +9,18 @@ startTime=`date +%s`
_os=`uname`
echo "use system: ${_os}"
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then

@ -9,13 +9,18 @@ startTime=`date +%s`
_os=`uname`
echo "use system: ${_os}"
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then

@ -9,13 +9,18 @@ startTime=`date +%s`
_os=`uname`
echo "use system: ${_os}"
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then

Loading…
Cancel
Save