Skip to content

Commit 869b6da

Browse files
author
Alexandros Ioannides
authored
Enhance Vsftpd security
1 parent f83731f commit 869b6da

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

install/upgrade/versions/latest.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ $BIN/v-update-web-templates
1414
echo "[ ! ] Updating default mail domain templates..."
1515
$BIN/v-update-mail-templates
1616
echo "[ ! ] Updating default DNS zone templates..."
17-
$BIN/v-update-dns-templates
17+
$BIN/v-update-dns-templates
18+
19+
# Enhance Vsftpd security
20+
if [ "$FTP_SYSTEM" = "vsftpd" ]; then
21+
echo "[ ! ] Hardening Vsftpd TLS configuration..."
22+
cp -f /etc/vsftpd.conf $HESTIA_BACKUP/conf/
23+
cp -f $HESTIA_INSTALL_DIR/vsftpd/vsftpd.conf /etc/
24+
chmod 644 /etc/vsftpd.conf
25+
fi

0 commit comments

Comments
 (0)