修改 apt 命令

This commit is contained in:
whyour
2025-12-11 01:53:50 +08:00
parent b9380c53d6
commit 9853a368b4
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