Skip to content

Commit 6ca6c69

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#188 from kristankenney/default-page-templates
Refresh template files when upgrading
2 parents 95d1db9 + b56f7d1 commit 6ca6c69

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,9 +973,8 @@ cp -rf $hestiacp/packages $HESTIA/data/
973973
# Installing templates
974974
cp -rf $hestiacp/templates $HESTIA/data/
975975

976-
# Copying index.html to default documentroot
977-
cp $HESTIA/data/templates/web/skel/public_html/index.html /var/www/
978-
sed -i 's/%domain%/It worked!/g' /var/www/index.html
976+
# Copy default "Success" page for unassigned hosts
977+
cp -rf $hestiacp/templates/web/unassigned/* /var/www/
979978

980979
# Installing firewall rules
981980
cp -rf $hestiacp/firewall $HESTIA/data/

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ cp -rf $hestiacp/packages $HESTIA/data/
947947
cp -rf $hestiacp/templates $HESTIA/data/
948948

949949
# Copy default "Success" page for unassigned hosts
950-
cp -rf $HESTIA/data/templates/web/unassigned/* /var/www/
950+
cp -rf $hestiacp/templates/web/unassigned/* /var/www/
951951

952952
# Installing firewall rules
953953
cp -rf $hestiacp/firewall $HESTIA/data/

src/deb/hestia/postinst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ if [ ! -z "$BACKEND_PORT" ]; then
6868
/usr/local/hestia/bin/v-change-sys-port $BACKEND_PORT
6969
fi
7070

71+
# Update Web and DNS templates
72+
rm -rf /usr/local/hestia/data/templates/*
73+
cp -rf /usr/local/hestia/install/ubuntu/18.04/templates/* /usr/local/hestia/data/templates/
74+
7175
exit 0

0 commit comments

Comments
 (0)