Update install_dev.sh

This commit is contained in:
midoks 2023-02-15 22:15:08 +08:00
parent 31d665d962
commit 39653896bf
1 changed files with 8 additions and 1 deletions

View File

@ -92,7 +92,14 @@ if [ $OSNAME != "macos" ];then
fi
echo "use system version: ${OSNAME}"
cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh
if [ "${OSNAME}" == "macos" ];then
USER=$(who | sed -n "2,1p" |awk '{print $1}')
DEV="/Users/${USER}/Desktop/mwdev"
cd $DEV && bash scripts/install/${OSNAME}.sh
else
cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh
fi
if [ "${OSNAME}" == "macos" ];then
echo "macos end"