From 637a32aa57bc2dc6421e0e79d52862f0924be1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 28 Apr 2020 15:17:51 +0200 Subject: [PATCH] Fix dependance for buster --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index d7cb34e..22b16fb 100644 --- a/scripts/install +++ b/scripts/install @@ -41,7 +41,11 @@ admin_email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g") # Check dependencies sudo apt-get update -sudo apt-get install -qq python2.7 python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect +if [ "$(lsb_release --codename --short)" == "stretch" ]; then + sudo apt-get install -qq python2.7 python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect +else + sudo apt-get install -qq python2.7 python-setuptools python-simplejson python-pil python-mysqldb python-flup expect +fi # Copy files to the right place test -e $final_path && sudo rm -rf "$final_path"