From d81355f9e8e4acb24c1f54923feddb8f46e9e7f3 Mon Sep 17 00:00:00 2001 From: Roy Kaldung Date: Thu, 3 Dec 2015 14:16:55 +0100 Subject: [PATCH] exec migrations after package update --- packaging/hooks/postinstall.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packaging/hooks/postinstall.sh diff --git a/packaging/hooks/postinstall.sh b/packaging/hooks/postinstall.sh new file mode 100644 index 000000000..2f3d3f281 --- /dev/null +++ b/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