Modify the script files on September 30, 2025.

This commit is contained in:
raymond9
2025-09-30 22:30:38 +08:00
parent 6b8dc236f4
commit 0e2ebc100e
18 changed files with 292 additions and 376 deletions

View File

@@ -4,7 +4,7 @@
#Author: Raymond
#QQ: 88563128
#MP: Raymond运维
#Date: 2025-09-24
#Date: 2025-09-30
#FileName: install_httpd_source.sh
#URL: https://wx.zsxq.com/group/15555885545422
#Description: The mysql source script install supports
@@ -26,13 +26,6 @@ os(){
else
MAIN_VERSION_ID=`sed -rn '/^VERSION_ID=/s@.*="?([0-9]+)\.?.*"?@\1@p' /etc/os-release`
fi
if [ ${MAIN_NAME} == "Ubuntu" -o ${MAIN_NAME} == "Debian" ];then
FULL_NAME="${PRETTY_NAME}"
elif [ ${MAIN_NAME} == "UOS" ];then
FULL_NAME="${NAME}"
else
FULL_NAME="${NAME} ${VERSION_ID}"
fi
}
os
@@ -159,7 +152,7 @@ EOF
fi
systemctl daemon-reload && systemctl enable --now httpd &> /dev/null
systemctl is-active httpd &> /dev/null || { ${COLOR}"Httpd启动失败,退出!"${END} ; exit; }
${COLOR}"${FULL_NAME}操作系统Httpd安装完成"${END}
${COLOR}"${PRETTY_NAME}操作系统Httpd安装完成"${END}
}
main(){
@@ -212,5 +205,5 @@ elif [ ${MAIN_NAME} == 'Debian' ];then
main
fi
else
${COLOR}"此脚本不支持${FULL_NAME}操作系统!"${END}
${COLOR}"此脚本不支持${PRETTY_NAME}操作系统!"${END}
fi