mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-23 09:39:23 +08:00
18 lines
297 B
Bash
18 lines
297 B
Bash
#!/bin/bash
|
|
|
|
ROOT=$(cd `dirname $0`; pwd)/..
|
|
DST='/etc/docker/daemon.json'
|
|
SRC="${DST}.${PPID}"
|
|
|
|
if [ ! -f "${DST}" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
${ROOT}/ascend-docker-plugin-install-helper rm ${DST} ${SRC}
|
|
if [ "$?" != "0" ]; then
|
|
echo 'ERROR: del damon.json failed'
|
|
exit 1
|
|
fi
|
|
|
|
mv ${SRC} ${DST}
|