Files
ascend-docker-runtime/build/scripts/uninstall.sh
2020-10-14 11:57:20 +08:00

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}