#!/bin/bash

function InstallFtpService {
    Message "Installing ftp service: proftpd.\n"
    echo "proftpd shared/proftpd/inetd_or_standalone select standalone" | debconf-set-selections
    apt-get install -y proftpd-core proftpd-mod-crypto || InstallationFailed

    /usr/local/fastpanel2/fastpanel  services configure -f -p proftpd
    systemctl daemon-reload
    /usr/local/fastpanel2/fastpanel  services handle --name=proftpd --action=enable
    /usr/local/fastpanel2/fastpanel  services handle --name=proftpd --action=restart

    Success
}
