Skip to content

Commit 9023485

Browse files
author
Kristan Kenney
committed
Small changes to upgrade script for 1.0.3
1 parent aa6717d commit 9023485

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

install/upgrade/versions/1.0.3.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ cp -f $hestiacp/ssl/dhparam.pem /etc/ssl/
1919
chmod 600 /etc/ssl/dhparam.pem
2020

2121
# Enhance Vsftpd security
22-
echo "(*) Modifying Vsftpd SSL configuration..."
22+
echo "(*) Hardening Vsftpd SSL configuration..."
2323
cp -f /etc/vsftpd.conf $HESTIA_BACKUP/conf/
2424
sed -i "s|ssl_tlsv1=YES|ssl_tlsv1=NO|g" /etc/vsftpd.conf
2525

2626
# Enhance Dovecot security
27-
echo "(*) Modifying Dovecot SSL configuration..."
27+
echo "(*) Hardening Dovecot SSL configuration..."
2828
mv /etc/dovecot/conf.d/10-ssl.conf $HESTIA_BACKUP/conf/
2929
cp -f $hestiacp/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/
3030

@@ -45,18 +45,17 @@ WEBALIZER_CHECK=$(cat $HESTIA/conf/hestia.conf | grep webalizer)
4545
if [ ! -z "$WEBALIZER_CHECK" ]; then
4646
echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
4747
apt purge webalizer -y > /dev/null 2>&1
48-
rm -fr $HESTIA/data/templates/web/webalizer
49-
rm -fr $HESTIA/install/deb/templates/web/webalizer
50-
rm -fr /var/www/webalizer
48+
rm -rf $HESTIA/data/templates/web/webalizer
49+
rm -rf /var/www/webalizer
5150
sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
5251
fi
5352

5453
# Remove old hestia.conf files from Apache & NGINX if they exist
5554
if [ -f "/etc/nginx/conf.d/hestia.conf" ]; then
56-
echo "(*) Removing old Apache configuration file..."
55+
echo "(*) Removing Apache configuration file from previous version of Hestia Control Panel..."
5756
rm -f /etc/apache2/conf.d/hestia.conf
5857
fi
5958
if [ -f "/etc/nginx/conf.d/hestia.conf" ]; then
60-
echo "(*) Removing old NGINX configuration file..."
59+
echo "(*) Removing old NGINX configuration file from previous version of Hestia Control Panel..."
6160
rm -f /etc/nginx/conf.d/hestia.conf
6261
fi

0 commit comments

Comments
 (0)