]> git.parisson.com Git - docker-django-scripts.git/commitdiff
No db wait ATM, fix media access rights
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 27 Mar 2018 09:36:44 +0000 (11:36 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 27 Mar 2018 09:36:44 +0000 (11:36 +0200)
dev/local/restore_db.sh
dev/update.sh

index 944b370f40ef0e19d2e2e8c17eb42d2032a37efc..27915f0985682e1406c1c255e4c0c798bfcb3618 100755 (executable)
@@ -5,7 +5,7 @@
 # export MYSQL="$(dpkg --get-selections  | grep mysql 2>&1)"
 
 # wait for db
-/srv/bin/misc/wait.sh
+/srv/bin/misc/wait.sh
 
 # import database functions of type
 if [ ! -z "$MYSQL_ROOT_PASSWORD" ]; then
index 0594c7eb0dc05065340b3a8925f0201d57203a4b..8b8d4668c52748a9183a600bb47c110a9b88610e 100755 (executable)
 
 cd "$(dirname "$0")"/../../
 
+# We need to chown folders as they are docker's volumes
+if ! uname -a | grep Darwin > /dev/null; then
+    sudo chown -R $USER var/media
+    sudo chown -R $USER var/backup
+fi
+
 # Update main project
 git pull