Update php.sh

This commit is contained in:
NewName
2024-08-21 12:50:28 +08:00
parent cb20925465
commit 41f5cde74b

View File

@@ -1,5 +1,10 @@
#!/bin/bash
# 检查apt源配置目录
if [ ! -d /etc/apt/sources.list.d/ ]; then
mkdir -p /etc/apt/sources.list.d/
fi
# 检查操作系统并设置 PHP 仓库
if grep -Eqi "debian" /etc/issue || grep -Eqi "debian" /proc/version; then
OS="debian"