Skip to content

Commit c6816c9

Browse files
author
Kristan Kenney
committed
Update templates on DEB upgrade
This change will cause the Web and DNS templates to be refreshed/updated when upgrading via the DEB package. To-do: Add OS detection or fix path so it's not hard-coded to Ubuntu 18.04.
1 parent 72cfa25 commit c6816c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/deb/hestia/postinst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@ 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+
cp -rf /usr/local/hestia/install/ubuntu/18.04/templates/* /usr/local/hestia/data/templates/
73+
7174
exit 0

0 commit comments

Comments
 (0)