From 171ef209813059dd7efe744abef28b8f09882e0c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 20 Sep 2018 19:20:51 -0400 Subject: [PATCH] Skip post-upgrade if no config present --- sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade b/sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade index 22089f0..98d19f5 100644 --- a/sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade +++ b/sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade @@ -1,2 +1,6 @@ #!/bin/sh -alembic-3 -c /etc/sr.ht/alembic/meta.ini upgrade head +conf=/etc/sr.ht/alembic/meta.ini +if [ -e "$conf" ] +then + alembic-3 -c "$conf" upgrade head +end -- 2.45.2