Files
ascend-docker-runtime/install/deb/scripts/prerm
2020-06-29 19:28:09 +08:00

16 lines
319 B
Bash

#!/bin/bash
DIR=/etc/docker
SRC="${DIR}/daemon.json.${PPID}"
DST="${DIR}/daemon.json"
if [ ! -f "${DST}" ]; then
exit 0
fi
BINDIR=/usr/bin
${BINDIR}/ascend-docker-plugin-install-helper rm ${DST} ${SRC}
if [ "$?" != "0" ]; then
echo "del damon.json failed\n"
exit 1
fi
\mv ${SRC} ${DST}
echo "del damom.json success\n"