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 | 6500a0ed25893de96bbe93177b4e3e5cbd11c973 (patch) | |
tree | 8e0354e2733baf4a952977ad2605c97781a39c48 /install/ishtar-update | |
parent | 2ffe229f6559fdf441e2870c1eb5cb920d7ee89e (diff) | |
download | Ishtar-6500a0ed25893de96bbe93177b4e3e5cbd11c973.tar.bz2 Ishtar-6500a0ed25893de96bbe93177b4e3e5cbd11c973.zip |
Update script: use python3
Diffstat (limited to 'install/ishtar-update')
-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 |