Update some Linux depends

add ca-certificates to install/update
This commit is contained in:
LukeZGD 2023-07-25 10:56:15 +08:00
parent b512ef5713
commit df8ab051f6

View File

@ -341,14 +341,14 @@ install_depends() {
fi fi
if [[ $distro == "arch" ]]; then if [[ $distro == "arch" ]]; then
sudo pacman -Sy --noconfirm --needed base-devel curl jq libimobiledevice openssh pyenv python udev unzip usbmuxd usbutils vim zenity zip sudo pacman -Sy --noconfirm --needed base-devel ca-certificates ca-certificates-mozilla curl jq libimobiledevice openssh pyenv python udev unzip usbmuxd usbutils vim zenity zip
elif [[ $distro == "debian" ]]; then elif [[ $distro == "debian" ]]; then
if [[ -n $ubuntu_ver ]]; then if [[ -n $ubuntu_ver ]]; then
sudo add-apt-repository -y universe sudo add-apt-repository -y universe
fi fi
sudo apt update sudo apt update
sudo apt install -y curl jq libimobiledevice6 libirecovery-common libssl3 openssh-client python3 unzip usbmuxd usbutils xxd zenity zip sudo apt install -y ca-certificates curl jq libimobiledevice6 libirecovery-common libssl3 openssh-client python3 unzip usbmuxd usbutils xxd zenity zip
if [[ -n $ubuntu_ver ]] && (( ubuntu_ver < 23 )); then if [[ -n $ubuntu_ver ]] && (( ubuntu_ver < 23 )); then
sudo apt install -y python2 sudo apt install -y python2
fi fi
@ -359,10 +359,10 @@ install_depends() {
sudo ln -sf /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-certificates.crt sudo ln -sf /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-certificates.crt
elif [[ $distro == "opensuse" ]]; then elif [[ $distro == "opensuse" ]]; then
sudo zypper -n in curl jq libimobiledevice-1_0-6 openssl-3 pyenv python3 usbmuxd unzip vim zenity zip sudo zypper -n in ca-certificates curl jq libimobiledevice-1_0-6 openssl-3 pyenv python3 usbmuxd unzip vim zenity zip
elif [[ $distro == "gentoo" ]]; then elif [[ $distro == "gentoo" ]]; then
sudo emerge -av net-misc/curl app-misc/jq libimobiledevice openssh python udev unzip usbmuxd usbutils vim zenity sudo emerge -av app-misc/ca-certificates net-misc/curl app-misc/jq libimobiledevice openssh python udev unzip usbmuxd usbutils vim zenity
elif [[ $platform == "macos" ]]; then elif [[ $platform == "macos" ]]; then
log "Installing Xcode Command Line Tools" log "Installing Xcode Command Line Tools"