Browse Source

exec migrations after package update

Roy Kaldung 9 years ago
parent
commit
d81355f9e8
1 changed files with 10 additions and 0 deletions
  1. 10 0
      packaging/hooks/postinstall.sh

+ 10 - 0
packaging/hooks/postinstall.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+
+if zammad config:get DATABASE_URL ; then
+    zammad run rake db:migrate
+fi
+
+touch tmp/restart.txt
+
+exit 0