From 3dd2a199153ef4de9d0727be011209594a43b99e Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 27 Mar 2019 14:03:47 -0700 Subject: [PATCH] Handle case where proftpd is not installed also, don't install a specific version since it doesn't work in 16.04 --- scripts/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 1278d6e5c..e5c3ccd8d 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -57,9 +57,9 @@ if [[ $(docker version --format {{.Client.Version}}) != "18.09.2" ]]; then fi echo "==> installer: updating proftpd" -if [[ "$(proftpd --version)" != *"1.3.5"* ]]; then +if ! command -v proftpd; then echo "Install proftpd" - apt install -y proftpd-basic=1.3.5e-1build1 proftpd-mod-ldap=1.3.5e-1build1 + apt install -y proftpd-basic proftpd-mod-ldap systemctl stop proftpd fi