From 086d45be021a84feef1fa45c8e360e4ebac5b594 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Wed, 30 Oct 2019 16:46:37 +0100
Subject: [PATCH] cd before upgrade

---
 upgrade_all.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/upgrade_all.sh b/upgrade_all.sh
index 4527682..cedfa9f 100755
--- a/upgrade_all.sh
+++ b/upgrade_all.sh
@@ -1,3 +1,5 @@
 #!/bin/bash
+DIR=$(realpath $(dirname $0))
+cd $DIR
 git pull
-`dirname $0`/do_postinstall.sh
+$DIR/do_postinstall.sh
-- 
GitLab