|
|
@@ -8,7 +8,6 @@
|
|
|
|
|
|
# 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..."
|
|
|
@@ -19,7 +18,9 @@ $BIN/v-update-dns-templates
|
|
|
# Enhance Vsftpd security
|
|
|
if [ "$FTP_SYSTEM" = "vsftpd" ]; then
|
|
|
echo "[ ! ] Hardening Vsftpd TLS configuration..."
|
|
|
- cp -f /etc/vsftpd.conf $HESTIA_BACKUP/conf/
|
|
|
+ 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
|