|
|
@@ -8,10 +8,19 @@
|
|
|
|
|
|
# Update template files to add warnings
|
|
|
# Backup current templates
|
|
|
-cp -r -f $HESTIA/data/templates/* $HESTIA_BACKUP/templates/
|
|
|
echo "[ ! ] Updating default web domain templates..."
|
|
|
$BIN/v-update-web-templates
|
|
|
echo "[ ! ] Updating default mail domain templates..."
|
|
|
$BIN/v-update-mail-templates
|
|
|
echo "[ ! ] Updating default DNS zone templates..."
|
|
|
-$BIN/v-update-dns-templates
|
|
|
+$BIN/v-update-dns-templates
|
|
|
+
|
|
|
+# Enhance Vsftpd security
|
|
|
+if [ "$FTP_SYSTEM" = "vsftpd" ]; then
|
|
|
+ echo "[ ! ] Hardening Vsftpd TLS configuration..."
|
|
|
+ if [ -e /etc/vsftpd.conf ]; then
|
|
|
+ rm -f /etc/vsftpd.conf
|
|
|
+ fi
|
|
|
+ cp -f $HESTIA_INSTALL_DIR/vsftpd/vsftpd.conf /etc/
|
|
|
+ chmod 644 /etc/vsftpd.conf
|
|
|
+fi
|