mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-13 08:28:21 +00:00
fix apt install
This commit is contained in:
@@ -30,7 +30,7 @@ if hash apt 2>/dev/null; then
|
||||
|
||||
# Install dependencies.
|
||||
echo -e "\nInstalling pre-requisites/dependencies package..."
|
||||
install_dependencies "apt install -qq -y" debian_is_installed \
|
||||
run apt install -qq -y \
|
||||
apt-transport-https apt-utils apache2-utils autoconf automake bash build-essential \
|
||||
ca-certificates cmake cron curl dmidecode dnsutils gcc geoip-bin geoip-database git \
|
||||
gnupg2 htop iptables libc6-dev libcurl4-openssl-dev libgd-dev libgeoip-dev libssl-dev \
|
||||
|
||||
@@ -57,7 +57,7 @@ function install_memcached() {
|
||||
echo "Installing Memcached server from repository..."
|
||||
|
||||
if hash apt 2>/dev/null; then
|
||||
install_dependencies "apt install -qq -y" debian_is_installed \
|
||||
run apt install -qq -y \
|
||||
libevent-dev libsasl2-dev libmemcached-tools libmemcached11 libmemcachedutil2 memcached
|
||||
else
|
||||
fail "Unable to install Memcached, this GNU/Linux distribution is not supported."
|
||||
@@ -67,7 +67,7 @@ function install_memcached() {
|
||||
echo "Installing Memcached server from source..."
|
||||
|
||||
if hash apt 2>/dev/null; then
|
||||
install_dependencies "apt install -qq -y" debian_is_installed \
|
||||
run apt install -qq -y \
|
||||
libevent-dev libsasl2-dev libmemcached-tools libmemcached11 libmemcachedutil2
|
||||
else
|
||||
fail "Unable to install Memcached, this GNU/Linux distribution is not supported."
|
||||
@@ -273,14 +273,14 @@ function install_php_memcached() {
|
||||
#PHPVERS=$(sed "s/,/ /g" <<<"${SELECTED_PHP}")
|
||||
for PHPv in ${SELECTED_PHP//,/ }
|
||||
do
|
||||
install_dependencies "apt install -qq -y" debian_is_installed \
|
||||
run apt install -qq -y \
|
||||
"php${PHPv}-igbinary" "php${PHPv}-memcache" "php${PHPv}-memcached" "php${PHPv}-msgpack"
|
||||
enable_php_memcached "${PHPv}"
|
||||
done
|
||||
|
||||
# Default PHP 7.4 for LEMPer.
|
||||
if [ "${PHPv}" != "7.4" ]; then
|
||||
install_dependencies "apt install -qq -y" debian_is_installed \
|
||||
run apt install -qq -y \
|
||||
"php7.4-igbinary" "php7.4-memcache" "php7.4-memcached" "php7.4-msgpack"
|
||||
enable_php_memcached "7.4"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user