From 20416e46b69c9d9bc39106d69bdd58aaf0b95d14 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 10 Nov 2022 22:51:16 +0800 Subject: [PATCH] up --- scripts/install.sh | 4 ---- scripts/install_dev.sh | 4 ---- scripts/update.sh | 4 ++++ scripts/update_dev.sh | 4 ++++ 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index ee59d9f5d..0e07a0f19 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -86,10 +86,6 @@ cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw stop cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw start cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw default -if [ -f /usr/bin/mw ];then - rm -rf /usr/bin/mw -fi - if [ ! -e /usr/bin/mw ]; then if [ -f /etc/init.d/mw ];then ln -s /etc/rc.d/init.d/mw /usr/bin/mw diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 83f8afaae..4fadb3781 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -93,10 +93,6 @@ cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw stop cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw start cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw default -if [ -f /usr/bin/mw ];then - rm -rf /usr/bin/mw -fi - if [ ! -e /usr/bin/mw ]; then if [ -f /etc/init.d/mw ];then ln -s /etc/rc.d/init.d/mw /usr/bin/mw diff --git a/scripts/update.sh b/scripts/update.sh index 8fe5240bb..b69939be9 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -74,6 +74,10 @@ cd /www/server/mdserver-web && bash scripts/update/${OSNAME}.sh bash /etc/rc.d/init.d/mw default +if [ -f /usr/bin/mw ];then + rm -rf /usr/bin/mw +fi + if [ ! -e /usr/bin/mw ]; then if [ ! -f /usr/bin/mw ];then ln -s /etc/rc.d/init.d/mw /usr/bin/mw diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index 7bd354461..b2d05ce05 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -72,6 +72,10 @@ cd /www/server/mdserver-web && bash scripts/update/${OSNAME}.sh bash /etc/rc.d/init.d/mw default +if [ -f /usr/bin/mw ];then + rm -rf /usr/bin/mw +fi + if [ ! -e /usr/bin/mw ]; then if [ ! -f /usr/bin/mw ];then ln -s /etc/rc.d/init.d/mw /usr/bin/mw