rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vongosl...@apache.org
Subject [rocketmq-docker] 31/50: Fix(issue#7): change data dir permission
Date Tue, 03 Dec 2019 13:50:54 GMT
This is an automated email from the ASF dual-hosted git repository.

vongosling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git

commit 57e0e21216e1cb6291c4249529ea99ac473dd91b
Author: 刘睿 <liurui@liuruideMacBook-Pro.local>
AuthorDate: Thu Aug 22 20:48:41 2019 +0800

    Fix(issue#7): change data dir permission
---
 templates/play-docker-compose.sh  | 2 ++
 templates/play-docker-deledger.sh | 2 ++
 templates/play-docker-tls.sh      | 2 ++
 templates/play-docker.sh          | 2 ++
 templates/play-kubernetes.sh      | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/templates/play-docker-compose.sh b/templates/play-docker-compose.sh
index 8ff631f..a8093d2 100755
--- a/templates/play-docker-compose.sh
+++ b/templates/play-docker-compose.sh
@@ -27,5 +27,7 @@ if [ ! -d "`pwd`/data" ]; then
   mkdir -p "data"
 fi
 
+chmod 777 -R data
+
 # Run nameserver and broker
 docker-compose -f ./docker-compose/docker-compose.yml up -d
diff --git a/templates/play-docker-deledger.sh b/templates/play-docker-deledger.sh
index 119a65c..e3d8f10 100755
--- a/templates/play-docker-deledger.sh
+++ b/templates/play-docker-deledger.sh
@@ -35,6 +35,8 @@ if [ ! -d "`pwd`/data" ]; then
   mkdir -p "data"
 fi
 
+chmod 777 -R data
+
 echo "Starting RocketMQ nodes..."
 
 # Create network
diff --git a/templates/play-docker-tls.sh b/templates/play-docker-tls.sh
index e1ae8fd..6df4f5f 100755
--- a/templates/play-docker-tls.sh
+++ b/templates/play-docker-tls.sh
@@ -27,6 +27,8 @@ if [ ! -d "`pwd`/data" ]; then
   mkdir -p "data"
 fi
 
+chmod 777 -R data
+
 echo "Starting RocketMQ nodes..."
 
 # Start nameserver
diff --git a/templates/play-docker.sh b/templates/play-docker.sh
index de01043..671c7fd 100755
--- a/templates/play-docker.sh
+++ b/templates/play-docker.sh
@@ -45,6 +45,8 @@ if [ ! -d "`pwd`/data" ]; then
   mkdir -p "data"
 fi
 
+chmod 777 -R data
+
 echo "Starting RocketMQ nodes..."
 
 case "${BASE_IMAGE}" in
diff --git a/templates/play-kubernetes.sh b/templates/play-kubernetes.sh
index 5a3a539..6702b40 100755
--- a/templates/play-kubernetes.sh
+++ b/templates/play-kubernetes.sh
@@ -19,5 +19,7 @@ if [ ! -d "`pwd`/data" ]; then
   mkdir -p "data"
 fi
 
+chmod 777 -R data
+
 # Run nameserver and broker on your Kubernetes cluster
 kubectl apply -f kubernetes/deployment.yaml


Mime
View raw message