From 698a5850c800428bfba9eb533fecce78ccb0c3d5 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:16:53 +0000 Subject: [PATCH] 2023.11.01 --- install_scripts/dlm.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install_scripts/dlm.sh b/install_scripts/dlm.sh index 1588734..efc6e29 100644 --- a/install_scripts/dlm.sh +++ b/install_scripts/dlm.sh @@ -4,6 +4,15 @@ # version: 2023.11.01 export DEBIAN_FRONTEND=noninteractive +var=`lsb_release -a | grep Gentoo` +if [ -z "${var}" ]; then + var=`cat /etc/issue | grep Gentoo` +fi +if [ -d "/etc/runlevels/default" -a -n "${var}" ]; then + LINUX_RELEASE="GENTOO" +else + LINUX_RELEASE="OTHER" +fi uninstall_qcloud(){ /usr/local/qcloud/stargate/admin/uninstall.sh