diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-06-16 18:17:17 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-06-21 16:20:39 +0000 |
commit | 0916f33ae552bdb68b907328919febdef1ff66a7 (patch) | |
tree | 81251effd6c618dc43c39cc4c81668455aa987e8 /automated/linux/lemp/lemp.sh | |
parent | 01a53c6175663afc0ee8d73b63dd4284aaf6f8e3 (diff) |
linux: jessie: install golang, nginx and openjdk8+ from backports
Fix https://bugs.linaro.org/show_bug.cgi?id=3044
Change-Id: I126ac676681440bfe55d7805d4206244f0200b7b
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/linux/lemp/lemp.sh')
-rwxr-xr-x | automated/linux/lemp/lemp.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/automated/linux/lemp/lemp.sh b/automated/linux/lemp/lemp.sh index 11d9840..99f4b02 100755 --- a/automated/linux/lemp/lemp.sh +++ b/automated/linux/lemp/lemp.sh @@ -18,8 +18,14 @@ dist_name # shellcheck disable=SC2154 case "${dist}" in debian) - pkgs="nginx mysql-server php5-mysql php5-fpm curl" - install_deps "${pkgs}" + dist_info + # shellcheck disable=SC2154 + if [ "${Codename}" = "jessie" ]; then + install_deps "mysql-server php5-mysql php5-fpm curl" + install_deps "-t jessie-backports nginx" + else + install_deps "nginx mysql-server php5-mysql php5-fpm curl" + fi # Stop apache server in case it is installed and running. systemctl stop apache2 > /dev/null 2>&1 || true |