diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-03-08 17:04:15 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:27 +0200 | 
| commit | e856efa067923340163dea0163e1e8a1f6f99a6a (patch) | |
| tree | 8e0354e2733baf4a952977ad2605c97781a39c48 | |
| parent | 4240aba2ea424e4900aed2d41f7dfa619234df03 (diff) | |
| download | Ishtar-e856efa067923340163dea0163e1e8a1f6f99a6a.tar.bz2 Ishtar-e856efa067923340163dea0163e1e8a1f6f99a6a.zip  | |
Update script: use python3
| -rwxr-xr-x | install/ishtar-update | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/install/ishtar-update b/install/ishtar-update index acd5367ac..4c4a83ddd 100755 --- a/install/ishtar-update +++ b/install/ishtar-update @@ -1,5 +1,7 @@  #!/bin/bash +PYTHON=python3 +  set -e  cecho() { @@ -75,7 +77,7 @@ update_instances() {                  for candidate in $maybe_localized; do                      if find $ISHTAR_PATH/$candidate -name '*.po' >/dev/null 2>&1; then                          app=${candidate%%/locale} -                        (cd $ISHTAR_PATH/$app; python $ISHTAR_PATH/$instance/manage.py compilemessages) +                        (cd $ISHTAR_PATH/$app; $PYTHON $ISHTAR_PATH/$instance/manage.py compilemessages)                      fi                  done                  translated='true' @@ -84,11 +86,11 @@ update_instances() {              cd $ISHTAR_PATH/$instance              cecho g "Instance: $instance"              cecho y " * collect static" -            python manage.py collectstatic --noinput 2> /dev/null +            $PYTHON manage.py collectstatic --noinput 2> /dev/null              cecho y " * database migrations" -            python manage.py migrate +            $PYTHON manage.py migrate              cecho y " * regenerate permissions" -            python manage.py regenerate_permissions +            $PYTHON manage.py regenerate_permissions          done      fi  | 
