Browse Source

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.
Kristan Kenney 7 years ago
parent
commit
c6816c9528
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/deb/hestia/postinst

+ 3 - 0
src/deb/hestia/postinst

@@ -68,4 +68,7 @@ if [ ! -z "$BACKEND_PORT" ]; then
     /usr/local/hestia/bin/v-change-sys-port $BACKEND_PORT
     /usr/local/hestia/bin/v-change-sys-port $BACKEND_PORT
 fi
 fi
 
 
+# Update Web and DNS templates
+cp -rf /usr/local/hestia/install/ubuntu/18.04/templates/* /usr/local/hestia/data/templates/
+
 exit 0
 exit 0