Match-id-5d7c450688879a2d5611d7b9277e815819cb1c3e

This commit is contained in:
BianTanggui
2020-06-29 20:46:37 +08:00
2 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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"