Match-id-c911fbb442ba6616d9e4d439886b7f64268e3b40

This commit is contained in:
BianTanggui
2023-02-16 19:45:49 +08:00
parent b61e2eb73b
commit 206bf0a396
4 changed files with 13 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ function save_install_args() {
rm "${INSTALL_PATH}"/ascend_docker_runtime_install.info
fi
{
echo -e "version=${PACKAGE_VERSION}"
echo -e "version=v${PACKAGE_VERSION}"
echo -e "arch=$(uname -m)"
echo -e "os=linux"
echo -e "path=${INSTALL_PATH}"
@@ -109,13 +109,13 @@ function install()
echo 'create damom.json success'
save_install_args
echo "[INFO]: Ascend Docker Runtime has been installed in: ${INSTALL_PATH}"
echo "[INFO]: The version of Ascend Docker Runtime is: ${PACKAGE_VERSION}"
echo "[INFO]: The version of Ascend Docker Runtime is: v${PACKAGE_VERSION}"
echo 'please reboot docker daemon to take effect'
}
function uninstall()
{
echo "[INFO]: Uninstalling ascend docker runtime ${PACKAGE_VERSION}"
echo "[INFO]: Uninstalling ascend docker runtime v${PACKAGE_VERSION}"
if [ ! -d "${INSTALL_PATH}" ]; then
echo 'WARNING: the specified install path does not exist, skipping'
@@ -179,7 +179,7 @@ function upgrade()
echo "[INFO]: Ascend Docker Runtime has been installed in: ${INSTALL_PATH}"
echo '[INFO]: upgrade ascend docker runtime success'
echo "[INFO]: The version of Ascend Docker Runtime is: ${PACKAGE_VERSION}"
echo "[INFO]: The version of Ascend Docker Runtime is: v${PACKAGE_VERSION}"
}
INSTALL_FLAG=n