File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1210,9 +1210,13 @@ $HESTIA/bin/v-change-sys-hostname $servername 'no' > /dev/null 2>&1
12101210
12111211# Generating SSL certificate
12121212echo " [ * ] 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
12171221crt_end=$( grep -n " END CERTIFICATE-" /tmp/hst.pem | cut -f 1 -d:)
12181222key_start=$( grep -n " BEGIN RSA" /tmp/hst.pem | cut -f 1 -d:)
You can’t perform that action at this time.
0 commit comments