mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 20:31:06 +07:00
9 lines
424 B
Bash
9 lines
424 B
Bash
|
release_version=$(lsb_release -s -r)
|
||
|
sudo DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:ondrej/pkg-gearman -y
|
||
|
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
||
|
|
||
|
if [ "$release_version" = "18.04" ]; then
|
||
|
sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y libgearman-dev php"$1"-gearman
|
||
|
elif [ "$release_version" = "16.04" ]; then
|
||
|
sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y php"$1"-gearman
|
||
|
fi
|