File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,7 @@ cp /etc/vsftpd.conf $hst_backups/vsftpd > /dev/null 2>&1
681681
682682# Backup ProFTPD configuration
683683systemctl stop proftpd > /dev/null 2>&1
684- cp /etc/proftpd.conf $hst_backups /proftpd > /dev/null 2>&1
684+ cp /etc/proftpd/ * $hst_backups /proftpd > /dev/null 2>&1
685685
686686# Backup Exim configuration
687687systemctl stop exim4 > /dev/null 2>&1
@@ -1298,6 +1298,8 @@ if [ "$proftpd" = 'yes' ]; then
12981298 echo " [ * ] Configuring ProFTPD server..."
12991299 echo " 127.0.0.1 $servername " >> /etc/hosts
13001300 cp -f $HESTIA_INSTALL_DIR /proftpd/proftpd.conf /etc/proftpd/
1301+ cp -f $HESTIA_INSTALL_DIR /proftpd/tls.conf /etc/proftpd/
1302+
13011303 update-rc.d proftpd defaults > /dev/null 2>&1
13021304 systemctl start proftpd >> $LOG
13031305 check_result $? " proftpd start failed"
Original file line number Diff line number Diff line change @@ -654,7 +654,7 @@ cp /etc/vsftpd.conf $hst_backups/vsftpd > /dev/null 2>&1
654654
655655# Backup ProFTPD configuration
656656systemctl stop proftpd > /dev/null 2>&1
657- cp /etc/proftpd.conf $hst_backups /proftpd > /dev/null 2>&1
657+ cp /etc/proftpd/ * $hst_backups /proftpd > /dev/null 2>&1
658658
659659# Backup Exim configuration
660660systemctl stop exim4 > /dev/null 2>&1
@@ -1339,6 +1339,7 @@ if [ "$proftpd" = 'yes' ]; then
13391339 echo " [ * ] Configuring ProFTPD server..."
13401340 echo " 127.0.0.1 $servername " >> /etc/hosts
13411341 cp -f $HESTIA_INSTALL_DIR /proftpd/proftpd.conf /etc/proftpd/
1342+ cp -f $HESTIA_INSTALL_DIR /proftpd/tls.conf /etc/proftpd/
13421343 update-rc.d proftpd defaults > /dev/null 2>&1
13431344 systemctl start proftpd >> $LOG
13441345 check_result $? " proftpd start failed"
Original file line number Diff line number Diff line change 55# ######################################################################################
66# ###### Place additional commands below. #######
77# ######################################################################################
8+
9+ if [ " $FTP_SYSTEM " == " proftpd" ]; then
10+ if [ -e /etc/proftpd/proftpd.conf ]; then
11+ rm /etc/proftpd/proftpd.conf
12+ fi
13+ if [ -e /etc/proftpd/tlss.conf ]; then
14+ rm /etc/proftpd/tls.conf
15+ fi
16+
17+ cp -f $HESTIA_INSTALL_DIR /proftpd/proftpd.conf /etc/proftpd/
18+ cp -f $HESTIA_INSTALL_DIR /proftpd/tls.conf /etc/proftpd/
19+
20+ fi
You can’t perform that action at this time.
0 commit comments