forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.0.3.sh
More file actions
30 lines (24 loc) · 1.07 KB
/
1.0.3.sh
File metadata and controls
30 lines (24 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# Hestia Control Panel upgrade script for target version 1.0.3
#######################################################################################
####### Place additional commands below. #######
#######################################################################################
# Set default theme
if [ -z $THEME ]; then
echo "(*) Enabling support for customizable themes and configuring default..."
$BIN/v-change-sys-theme default
fi
# Replace dhparam 1024 with dhparam 4096
echo "(*) Updating dhparam to 4096-bit..."
mv /etc/ssl/dhparam.pem $HESTIA_BACKUP/conf/
cp -rf $HESTIA/install/deb/ssl/dhparam.pem /etc/ssl/
systemctl reload nginx
# Enhance Vsftpd security
echo "(*) Enhancing Vsftpd security..."
cp -rf /etc/vsftpd.conf $HESTIA_BACKUP/conf/
sed -i "s|ssl_tlsv1=YES|ssl_tlsv1=NO|g" /etc/vsftpd.conf
# Enhance Dovecot security
echo "(*) Enhancing Dovecot security..."
mv /etc/dovecot/conf.d/10-ssl.conf $HESTIA_BACKUP/conf/
cp -rf $HESTIA/install/deb/dovecot/10-ssl.conf /etc/dovecot/conf.d/
systemctl restart dovecot