mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
deb11 installer: systemctl enable proftpd
This commit is contained in:
parent
9791d0b3b3
commit
a2572f44df
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue