File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1412,10 +1412,21 @@ if [ "$proftpd" = 'yes' ]; then
14121412 echo " 127.0.0.1 $servername " >> /etc/hosts
14131413 cp -f $HESTIA_INSTALL_DIR /proftpd/proftpd.conf /etc/proftpd/
14141414 cp -f $HESTIA_INSTALL_DIR /proftpd/tls.conf /etc/proftpd/
1415-
1415+
1416+ if [ " $release " -eq 11 ]; then
1417+ sed -i ' s|IdentLookups off|#IdentLookups off|g' /etc/proftpd/proftpd.conf
1418+ fi
1419+
14161420 update-rc.d proftpd defaults > /dev/null 2>&1
14171421 systemctl start proftpd >> $LOG
14181422 check_result $? " proftpd start failed"
1423+
1424+ if [ " $release " -eq 11 ]; then
1425+ unit_files=" $( systemctl list-unit-files | grep proftpd) "
1426+ if [[ " $unit_files " =~ " disabled" ]]; then
1427+ systemctl enable proftpd
1428+ fi
1429+ fi
14191430fi
14201431
14211432
You can’t perform that action at this time.
0 commit comments