deb11 installer: systemctl enable proftpd

This commit is contained in:
myvesta 2021-07-17 12:58:54 +02:00 committed by GitHub
commit a2572f44df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1079,6 +1079,12 @@ if [ "$proftpd" = 'yes' ]; then
update-rc.d proftpd defaults update-rc.d proftpd defaults
service proftpd start service proftpd start
check_result $? "proftpd start failed" check_result $? "proftpd start failed"
if [ "$release" -eq 11 ]; then
unit_files="$(systemctl list-unit-files |grep proftpd)"
if [[ "$unit_files" =~ "disabled" ]]; then
systemctl enable proftpd
fi
fi
fi fi