修改 apt 命令

This commit is contained in:
whyour
2026-03-01 20:36:42 +08:00
parent 0215b7f3a8
commit d4e3fde32a
6 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ os_name=$(source /etc/os-release && echo "$ID")
if [[ $os_name == 'alpine' ]]; then
apk --no-cache add -f zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev
elif [[ $os_name == 'debian' ]] || [[ $os_name == 'ubuntu' ]]; then
apt install -y gcc python3-dev musl-dev
apt-get install -y gcc python3-dev musl-dev
else
echo -e "暂不支持此系统 $os_name"
exit 1
+2 -2
View File
@@ -46,8 +46,8 @@ if [[ $os_name == 'alpine' ]]; then
procps \
netcat-openbsd
elif [[ $os_name == 'debian' ]] || [[ $os_name == 'ubuntu' ]]; then
apt update
apt install -y git curl wget tzdata perl openssl jq nginx procps netcat-openbsd openssh-client
apt-get update
apt-get install -y git curl wget tzdata perl openssl jq nginx procps netcat-openbsd openssh-client
else
echo -e "暂不支持此系统部署 $os_name"
exit 1