Skip to content

Commit 4a19b64

Browse files
authored
Ubuntu 18.04 requires email to be set (hestiacp#1871)
Debain 9, 10 and Ubuntu 20.04 allows it without
1 parent 9091e1f commit 4a19b64

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,9 +1210,13 @@ $HESTIA/bin/v-change-sys-hostname $servername 'no' > /dev/null 2>&1
12101210

12111211
# Generating SSL certificate
12121212
echo "[ * ] Generating default self-signed SSL certificate..."
1213-
$HESTIA/bin/v-generate-ssl-cert $(hostname) '' 'US' 'California' \
1214-
'San Francisco' 'Hestia Control Panel' 'IT' > /tmp/hst.pem
1215-
1213+
if [ "$release" = "18.04" ]; then
1214+
$HESTIA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
1215+
'San Francisco' 'Hestia Control Panel' 'IT' > /tmp/hst.pem
1216+
else
1217+
$HESTIA/bin/v-generate-ssl-cert $(hostname) '' 'US' 'California' \
1218+
'San Francisco' 'Hestia Control Panel' 'IT' > /tmp/hst.pem
1219+
fi
12161220
# Parsing certificate file
12171221
crt_end=$(grep -n "END CERTIFICATE-" /tmp/hst.pem |cut -f 1 -d:)
12181222
key_start=$(grep -n "BEGIN RSA" /tmp/hst.pem |cut -f 1 -d:)

0 commit comments

Comments
 (0)