Match-id-c3fed31ef34bd8a17d9ce90e835f95d2bb638ab9

This commit is contained in:
BianTanggui
2022-12-12 16:02:24 +08:00
parent f7da6db344
commit 57af10846f

View File

@@ -265,6 +265,15 @@ if [ "${INSTALL_PATH_FLAG}" == "y" ] && \
exit 1
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
if [ "${UID}" != "0" ]; then
echo 'please run with root permission'