Skip to content

Commit 9308c83

Browse files
committed
Add UPDATE_HOSTNAME_SSL variable to hestia.conf if not exist.
1 parent 8713f05 commit 9308c83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-update-host-certificate

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
6969
chown $exim_user:mail $HESTIA/ssl/certificate.key
7070
fi
7171

72+
# Add UPDATE_HOSTNAME_SSL if not exist
73+
if [ -z "$UPDATE_HOSTNAME_SSL" ]; then
74+
echo "UPDATE_HOSTNAME_SSL='yes'" >> $HESTIA/conf/hestia.conf
75+
fi
76+
7277
# Restart services
7378
$BIN/v-restart-web
7479
$BIN/v-restart-proxy

0 commit comments

Comments
 (0)