Skip post-upgrade if no config present
1 files changed, 5 insertions(+), 1 deletions(-) M sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade
M sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade => sr.ht/meta.sr.ht/meta.sr.ht.post-upgrade +5 -1
@@ 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