Skip to content

Commit e20beed

Browse files
author
Kristan Kenney
committed
Minor fixes to upgrade script
1 parent 6c570a9 commit e20beed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/upgrade/versions/latest.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
# Update template files to add warnings
1010
# Backup current templates
11-
cp -r -f $HESTIA/data/templates/* $HESTIA_BACKUP/templates/
1211
echo "[ ! ] Updating default web domain templates..."
1312
$BIN/v-update-web-templates
1413
echo "[ ! ] Updating default mail domain templates..."
@@ -19,7 +18,9 @@ $BIN/v-update-dns-templates
1918
# Enhance Vsftpd security
2019
if [ "$FTP_SYSTEM" = "vsftpd" ]; then
2120
echo "[ ! ] Hardening Vsftpd TLS configuration..."
22-
cp -f /etc/vsftpd.conf $HESTIA_BACKUP/conf/
21+
if [ -e /etc/vsftpd.conf ]; then
22+
rm -f /etc/vsftpd.conf
23+
fi
2324
cp -f $HESTIA_INSTALL_DIR/vsftpd/vsftpd.conf /etc/
2425
chmod 644 /etc/vsftpd.conf
2526
fi

0 commit comments

Comments
 (0)