Skip to content

Commit e8abeb4

Browse files
author
Kristan Kenney
committed
Fix missing dhparam on apache-only systems
1 parent eaaa590 commit e8abeb4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,8 @@ chown root:mail $HESTIA/ssl/*
11511151
chmod 660 $HESTIA/ssl/*
11521152
rm /tmp/hst.pem
11531153

1154+
# Install dhparam.pem
1155+
cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
11541156

11551157
#----------------------------------------------------------#
11561158
# Configure Nginx #
@@ -1188,9 +1190,6 @@ if [ "$nginx" = 'yes' ]; then
11881190
check_result $? "php$fpm_v-fpm start failed"
11891191
fi
11901192

1191-
# Install dhparam.
1192-
cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
1193-
11941193
# Update dns servers in nginx.conf
11951194
dns_resolver=$(cat /etc/resolv.conf | grep -i '^nameserver' | cut -d ' ' -f2 | tr '\r\n' ' ' | xargs)
11961195
for ip in $dns_resolver; do

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,8 @@ if [ -z "$(grep nologin /etc/shells)" ]; then
11191119
echo "/usr/sbin/nologin" >> /etc/shells
11201120
fi
11211121

1122+
# Install dhparam.pem
1123+
cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
11221124

11231125
#----------------------------------------------------------#
11241126
# Configure Nginx #
@@ -1156,9 +1158,6 @@ if [ "$nginx" = 'yes' ]; then
11561158
check_result $? "php$fpm_v-fpm start failed"
11571159
fi
11581160

1159-
# Install dhparam.
1160-
cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
1161-
11621161
# Update dns servers in nginx.conf
11631162
dns_resolver=$(cat /etc/resolv.conf | grep -i '^nameserver' | cut -d ' ' -f2 | tr '\r\n' ' ' | xargs)
11641163
for ip in $dns_resolver; do

0 commit comments

Comments
 (0)