Skip to content

Commit 4483169

Browse files
author
Kristan Kenney
committed
Add warning to default template files
When using these files for a domain, do not modify them directly. Create a copy to ensure that they are not overwritten on rebuild or upgrade.
1 parent 8c3d792 commit 4483169

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+315
-24
lines changed

func/upgrade.sh

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -217,27 +217,6 @@ upgrade_phpmyadmin() {
217217
fi
218218
}
219219

220-
update_php_templates() {
221-
echo "[ * ] Updating default PHP templates..."
222-
# Update default template
223-
cp -f $HESTIA_INSTALL_DIR/templates/web/php-fpm/default.tpl \
224-
$HESTIA/data/templates/web/php-fpm/default.tpl
225-
226-
# Update no-php template
227-
cp -f $HESTIA_INSTALL_DIR/templates/web/php-fpm/no-php.tpl \
228-
$HESTIA/data/templates/web/php-fpm/no-php.tpl
229-
230-
# Update socket template
231-
cp -f $HESTIA_INSTALL_DIR/templates/web/php-fpm/socket.tpl \
232-
$HESTIA/data/templates/web/php-fpm/socket.tpl
233-
234-
for version in $($HESTIA/bin/v-list-sys-php plain); do
235-
echo "[ * ] Updating templates for PHP ${version}..."
236-
cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \
237-
$HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl;
238-
done
239-
}
240-
241220
upgrade_get_version() {
242221
# Retrieve new version number for Hestia Control Panel from .deb package
243222
new_version=$(dpkg -l | awk '$2=="hestia" { print $3 }')

install/deb/templates/web/apache2/default.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_ssl_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/default.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/hosting.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_ssl_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/hosting.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/php-fpm/default.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_ssl_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/php-fpm/default.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/phpcgi.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_ssl_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/phpcgi.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_port%>
27

38
ServerName %domain_idn%

install/deb/templates/web/apache2/phpfcgid.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=======================================================================#
2+
# Default Web Domain Template #
3+
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
4+
#=======================================================================#
5+
16
<VirtualHost %ip%:%web_ssl_port%>
27

38
ServerName %domain_idn%

0 commit comments

Comments
 (0)