Handle case where proftpd is not installed

also, don't install a specific version since it doesn't work in 16.04
This commit is contained in:
Girish Ramakrishnan
2019-03-27 14:03:47 -07:00
parent 384286cf0a
commit 3dd2a19915

View File

@@ -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