fix: Update openim-tools.sh fix tools check

This commit is contained in:
Xinwei Xiong
2024-01-24 15:02:32 +08:00
committed by GitHub
parent 776081b35d
commit add05a5f26
+1 -5
View File
@@ -105,11 +105,7 @@ function openim::tools::start_service() {
fi
openim::log::status "Starting ${binary_name}..."
# Later, after discarding Docker, the Docker keyword is unreliable, and Kubepods is used
if grep -qE 'docker|kubepods' /proc/1/cgroup || [ -f /.dockerenv ]; then
${cmd} >> "${LOG_FILE}" 2>&1
else
${cmd} | tee -a "${LOG_FILE}"
fi
${cmd} | tee -a "${LOG_FILE}"
}
function openim::tools::start() {