From: Guillaume Pellerin Date: Tue, 27 Mar 2018 09:36:44 +0000 (+0200) Subject: No db wait ATM, fix media access rights X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4d87d70fa3d6b83cd9bb31cc87fc6916faf590a9;p=docker-django-scripts.git No db wait ATM, fix media access rights --- diff --git a/dev/local/restore_db.sh b/dev/local/restore_db.sh index 944b370..27915f0 100755 --- a/dev/local/restore_db.sh +++ b/dev/local/restore_db.sh @@ -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 diff --git a/dev/update.sh b/dev/update.sh index 0594c7e..8b8d466 100755 --- a/dev/update.sh +++ b/dev/update.sh @@ -10,6 +10,12 @@ 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