Skip to content

Commit 7d62175

Browse files
author
Kristan Kenney
committed
Update templates during upgrade for per-domain OCSP & HSTS support
1 parent 01fc826 commit 7d62175

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

install/upgrade/versions/1.0.1.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ source /usr/local/hestia/conf/hestia.conf
2020

2121
####### Place additional commands below. #######
2222

23+
# Back up old template files and install the latest versions
24+
if [ -d $HESTIA/data/templates/ ]; then
25+
cp -rf $HESTIA/data/templates $HESTIA_BACKUP/templates/
26+
$HESTIA/bin/v-update-web-templates
27+
$HESTIA/bin/v-update-dns-templates
28+
$HESTIA/bin/v-update-mail-templates
29+
fi
30+
2331
# Update Apache and Nginx configuration to support new file structure
2432
echo "(*) Updating web server configuration..."
2533
if [ -f /etc/apache2/apache.conf ]; then

install/upgrade/versions/1.00.0-190618.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ if [ -d $HESTIA/data/packages/ ]; then
6161
cp -f $HESTIA/data/packages/default.pkg $HESTIA_BACKUP/packages/
6262
fi
6363

64-
# Back up old template files and install the latest versions
65-
if [ -d $HESTIA/data/templates/ ]; then
66-
cp -rf $HESTIA/data/templates $HESTIA_BACKUP/templates/
67-
$HESTIA/bin/v-update-web-templates
68-
$HESTIA/bin/v-update-dns-templates
69-
$HESTIA/bin/v-update-mail-templates
70-
fi
71-
7264
# Remove old Office 365 template as there is a newer version with an updated name
7365
if [ -f $HESTIA/data/templates/dns/o365.tpl ]; then
7466
rm -f $HESTIA/data/templates/dns/o365.tpl

0 commit comments

Comments
 (0)