From 06463a4ed276af3622cc885a11ae198bf06da906 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 10 Mar 2018 13:48:58 +0100 Subject: [PATCH] Add php-zip only for stretch --- scripts/_common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8614912..611696a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,7 +3,11 @@ # COMMON VARIABLES #================================================= -pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-zip php5-imagick imagemagick acl tar smbclient" +pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient" + +if [ "$(lsb_release --codename --short)" == "stretch" ]; then + pkg_dependencies="$pkg_dependencies php-zip" +fi #================================================= # COMMON HELPERS