mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-11 04:50:04 +08:00
Match-id-5d7c450688879a2d5611d7b9277e815819cb1c3e
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DIR=/etc/docker
|
DIR=/etc/docker
|
||||||
if [ ! -d "${DIR}" ]; then
|
|
||||||
mkdir ${DIR}
|
|
||||||
fi
|
|
||||||
SRC="${DIR}/daemon.json.${PPID}"
|
SRC="${DIR}/daemon.json.${PPID}"
|
||||||
DST="${DIR}/daemon.json"
|
DST="${DIR}/daemon.json"
|
||||||
|
if [ ! -f "${DST}" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
BINDIR=/usr/bin
|
BINDIR=/usr/bin
|
||||||
${BINDIR}/ascend-docker-plugin-install-helper rm ${DST} ${SRC}
|
${BINDIR}/ascend-docker-plugin-install-helper rm ${DST} ${SRC}
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
|
@@ -42,6 +42,9 @@ DIR=/etc/docker
|
|||||||
BINDIR=/usr/bin
|
BINDIR=/usr/bin
|
||||||
SRC="${DIR}/daemon.json.${PPID}"
|
SRC="${DIR}/daemon.json.${PPID}"
|
||||||
DST="${DIR}/daemon.json"
|
DST="${DIR}/daemon.json"
|
||||||
|
if [ ! -f "${DST}" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
${BINDIR}/ascend-docker-plugin-install-helper rm ${DST} ${SRC}
|
${BINDIR}/ascend-docker-plugin-install-helper rm ${DST} ${SRC}
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "del damon.json failed\n"
|
echo "del damon.json failed\n"
|
||||||
|
Reference in New Issue
Block a user