Skip to content

Commit b56f7d1

Browse files
author
Kristan Kenney
committed
Remove old page templates before updating
Some files may not be removed if renamed during development process. The postinst script will now remove all older templates during the upgrade process.
1 parent 9728da3 commit b56f7d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/deb/hestia/postinst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ if [ ! -z "$BACKEND_PORT" ]; then
6969
fi
7070

7171
# Update Web and DNS templates
72+
rm -rf /usr/local/hestia/data/templates/*
7273
cp -rf /usr/local/hestia/install/ubuntu/18.04/templates/* /usr/local/hestia/data/templates/
7374

7475
exit 0

0 commit comments

Comments
 (0)