diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-09-21 22:51:33 +0300 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-09-21 22:51:33 +0300 |
commit | 1d6bbae4e13c2efe0850258e4151c7240824fa2d (patch) | |
tree | c1237748f34cb94b0c23c2ae37b0bd9ef1278bc6 /scripts | |
parent | 31fd7eabd925bb4b6995a2d6d213f6c3026b9e36 (diff) |
conditionally move away old venv if it exists
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maintenance/update.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/maintenance/update.sh b/scripts/maintenance/update.sh index 1b40dd895a..f74131343b 100755 --- a/scripts/maintenance/update.sh +++ b/scripts/maintenance/update.sh @@ -42,9 +42,12 @@ python manage.py importdbtranslations deactivate -# get rid of old venv -mv venv venvold +# get rid of old venv if it exists +if [[ -d "venv" ]]; then + mv venv venvold +fi + mv venvtmp venv -mv venvold venvtmp +rm -rf venvold eval $reload_cmd |