Update install_dev.sh

pull/382/head
midoks 2 years ago
parent 31d665d962
commit 39653896bf
  1. 9
      scripts/install_dev.sh

@ -92,7 +92,14 @@ if [ $OSNAME != "macos" ];then
fi fi
echo "use system version: ${OSNAME}" 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 if [ "${OSNAME}" == "macos" ];then
echo "macos end" echo "macos end"

Loading…
Cancel
Save