File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff 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
2432echo " (*) Updating web server configuration..."
2533if [ -f /etc/apache2/apache.conf ]; then
Original file line number Diff line number Diff line change @@ -61,14 +61,6 @@ if [ -d $HESTIA/data/packages/ ]; then
6161 cp -f $HESTIA /data/packages/default.pkg $HESTIA_BACKUP /packages/
6262fi
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
7365if [ -f $HESTIA /data/templates/dns/o365.tpl ]; then
7466 rm -f $HESTIA /data/templates/dns/o365.tpl
You can’t perform that action at this time.
0 commit comments