From 2973136242d1049035fc931f0d68a9559d8a6940 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Tue, 2 Sep 2014 19:43:22 +0530 Subject: [PATCH] Better way to get OS codename --- src/modules/stack/install/ee_mod_repo_nginx.sh | 2 +- src/modules/stack/install/ee_mod_repo_php.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/stack/install/ee_mod_repo_nginx.sh b/src/modules/stack/install/ee_mod_repo_nginx.sh index bb1c1bec..773b8d54 100644 --- a/src/modules/stack/install/ee_mod_repo_nginx.sh +++ b/src/modules/stack/install/ee_mod_repo_nginx.sh @@ -13,7 +13,7 @@ function ee_mod_repo_nginx() # Add Dotdeb nginx repository ee_lib_echo "Adding Dotdeb NGINX repository, please wait..." - echo "deb http://packages.dotdeb.org $(lsb_release -c | awk '{print($2)}') all" > /etc/apt/sources.list.d/dotdeb-$(lsb_release -c | awk '{print($2)}').list \ + echo "deb http://packages.dotdeb.org $(lsb_release -sc) all" > /etc/apt/sources.list.d/dotdeb-$(lsb_release -sc).list \ || ee_lib_error "Unable to add Dotdeb NGINX repository, exit status = " $? # Fetch and install dotdeb GnuPG key diff --git a/src/modules/stack/install/ee_mod_repo_php.sh b/src/modules/stack/install/ee_mod_repo_php.sh index d08cbed6..e21bb382 100644 --- a/src/modules/stack/install/ee_mod_repo_php.sh +++ b/src/modules/stack/install/ee_mod_repo_php.sh @@ -14,7 +14,7 @@ function ee_mod_repo_php() elif [ $EE_DEBIAN_VERSION -eq 6 ]; then ee_lib_echo "Adding Dotdeb PHP5.4 repository, please wait..." - echo "deb http://packages.dotdeb.org $(lsb_release -c | awk '{print($2)}')-php54 all" > /etc/apt/sources.list.d/dotdeb-$(lsb_release -c | awk '{print($2)}')-php54.list \ + echo "deb http://packages.dotdeb.org $(lsb_release -sc)-php54 all" > /etc/apt/sources.list.d/dotdeb-$(lsb_release -sc)-php54.list \ || ee_lib_error "Unable to add Dotdeb PHP5.4 repository, exit status = " $? # Fetch and install Dotdeb GnuPG key @@ -24,7 +24,7 @@ function ee_mod_repo_php() elif [ $EE_DEBIAN_VERSION -eq 7 ]; then ee_lib_echo "Adding Dotdeb PHP5.5 repository, please wait..." - echo "deb http://packages.dotdeb.org $(lsb_release -c | awk '{print($2)}')-php55 all" > /etc/apt/sources.list.d/dotdeb-$(lsb_release -c | awk '{print($2)}')-php55.list \ + echo "deb http://packages.dotdeb.org $(lsb_release -sc)-php55 all" > /etc/apt/sources.list.d/dotdeb-$(lsb_release -sc)-php55.list \ || ee_lib_error "Unable to add Dotdeb PHP5.5 repository, exit status = " $? # Fetch and install dotdeb GnuPG key