mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-24 03:03:56 +08:00
Match-id-c3fed31ef34bd8a17d9ce90e835f95d2bb638ab9
This commit is contained in:
@@ -265,6 +265,15 @@ if [ "${INSTALL_PATH_FLAG}" == "y" ] && \
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# it is not allowed to input only quiet
|
||||||
|
if [ "${quiet_flag}" == "y" ] && \
|
||||||
|
[ "${INSTALL_FLAG}" == "n" ] && \
|
||||||
|
[ "${UNINSTALL_FLAG}" == "n" ] && \
|
||||||
|
[ "${UPGRADE_FLAG}" == "n" ]; then
|
||||||
|
echo "[ERROR] parameter error ! Mode is neither install, uninstall, upgrade."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# must run with root permission
|
# must run with root permission
|
||||||
if [ "${UID}" != "0" ]; then
|
if [ "${UID}" != "0" ]; then
|
||||||
echo 'please run with root permission'
|
echo 'please run with root permission'
|
||||||
|
Reference in New Issue
Block a user