Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/appstore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-09-21 22:51:33 +0300
committerBernhard Posselt <dev@bernhard-posselt.com>2016-09-21 22:51:33 +0300
commit1d6bbae4e13c2efe0850258e4151c7240824fa2d (patch)
treec1237748f34cb94b0c23c2ae37b0bd9ef1278bc6 /scripts
parent31fd7eabd925bb4b6995a2d6d213f6c3026b9e36 (diff)
conditionally move away old venv if it exists
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maintenance/update.sh9
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