diff --git a/build/scripts/run_main.sh b/build/scripts/run_main.sh index d863f0b3774b221e8c0beaa9f37f3609fa30476c..87025d1a541fb90e3a863d5b4e5b94afaeb81283 100644 --- a/build/scripts/run_main.sh +++ b/build/scripts/run_main.sh @@ -190,7 +190,7 @@ a500=n a200=n a200isoc=n quiet_flag=n -ISULA=n +ISULA=none while true do @@ -237,14 +237,14 @@ do shift ;; --ce=*) - if [ "${ISULA}" == "y" ]; then + if [ "${ISULA}" == "isula" ]; then echo "warning: Repeat parameter!" exit 1 fi if [ "$3" == "--ce=isula" ]; then DOCKER_CONFIG_DIR="/etc/isulad" - ISULA=y + ISULA=isula else echo "ERROR :Please check the parameter of --ce=" exit 1 diff --git a/build/scripts/uninstall.sh b/build/scripts/uninstall.sh index 2aa506ded883a9b22aeafa3e1d74629e571a4657..058f1c6d05970718e39967a18ca4dcfb09173c37 100644 --- a/build/scripts/uninstall.sh +++ b/build/scripts/uninstall.sh @@ -20,7 +20,7 @@ LOG_FILE="/var/log/ascend-docker-runtime/installer.log" echo "Ascend-Docker-Runtime" $(date +%Y%m%d-%H:%M:%S) "start uninstall" echo "Ascend-Docker-Runtime" $(date +%Y%m%d-%H:%M:%S) "start uninstall" >>${LOG_FILE} ROOT=$(cd $(dirname $0); pwd)/.. -if [ "$*" == "y" ] ; then +if [ "$*" == "isula" ] ; then DST='/etc/isulad/daemon.json' echo "[INFO]: You will recover iSula's daemon" else