mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
34 lines
723 B
Bash
Executable file
34 lines
723 B
Bash
Executable file
BootstrapArchCommon() {
|
|
# Tested with:
|
|
# - ArchLinux (x86_64)
|
|
#
|
|
# "python-virtualenv" is Python3, but "python2-virtualenv" provides
|
|
# only "virtualenv2" binary, not "virtualenv" necessary in
|
|
# ./tools/_venv_common.sh
|
|
|
|
deps="
|
|
python2
|
|
python-virtualenv
|
|
gcc
|
|
augeas
|
|
openssl
|
|
libffi
|
|
ca-certificates
|
|
pkg-config
|
|
"
|
|
|
|
# pacman -T exits with 127 if there are missing dependencies
|
|
missing=$($SUDO pacman -T $deps) || true
|
|
|
|
if [ "$ASSUME_YES" = 1 ]; then
|
|
noconfirm="--noconfirm"
|
|
fi
|
|
|
|
if [ "$missing" ]; then
|
|
if [ "$QUIET" = 1]; then
|
|
$SUDO pacman -S --needed $missing $noconfirm > /dev/null
|
|
else
|
|
$SUDO pacman -S --needed $missing $noconfirm
|
|
fi
|
|
fi
|
|
}
|