Browse Source

Better way to get OS codename

old-stable
gau1991 10 years ago
parent
commit
2973136242
  1. 2
      src/modules/stack/install/ee_mod_repo_nginx.sh
  2. 4
      src/modules/stack/install/ee_mod_repo_php.sh

2
src/modules/stack/install/ee_mod_repo_nginx.sh

@ -13,7 +13,7 @@ function ee_mod_repo_nginx()
# Add Dotdeb nginx repository # Add Dotdeb nginx repository
ee_lib_echo "Adding Dotdeb NGINX repository, please wait..." 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 = " $? || ee_lib_error "Unable to add Dotdeb NGINX repository, exit status = " $?
# Fetch and install dotdeb GnuPG key # Fetch and install dotdeb GnuPG key

4
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 elif [ $EE_DEBIAN_VERSION -eq 6 ]; then
ee_lib_echo "Adding Dotdeb PHP5.4 repository, please wait..." 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 = " $? || ee_lib_error "Unable to add Dotdeb PHP5.4 repository, exit status = " $?
# Fetch and install Dotdeb GnuPG key # Fetch and install Dotdeb GnuPG key
@ -24,7 +24,7 @@ function ee_mod_repo_php()
elif [ $EE_DEBIAN_VERSION -eq 7 ]; then elif [ $EE_DEBIAN_VERSION -eq 7 ]; then
ee_lib_echo "Adding Dotdeb PHP5.5 repository, please wait..." 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 = " $? || ee_lib_error "Unable to add Dotdeb PHP5.5 repository, exit status = " $?
# Fetch and install dotdeb GnuPG key # Fetch and install dotdeb GnuPG key

Loading…
Cancel
Save