rabin пре 7 година
родитељ
комит
75d9e57b4d
3 измењених фајлова са 5 додато и 4 уклоњено
  1. 1 0
      install
  2. 2 2
      src/shell/hook/elasticsearch
  3. 2 2
      src/shell/hook/hadoop

+ 1 - 0
install

@@ -20,6 +20,7 @@ service docker restart
 
 chmod -R +x src/*.py
 chmod -R +x src/shell
+chmod -R 777 container/share/
 basepath=$(cd `dirname $0`; pwd)
 ln -sf $basepath/src/main.py /usr/bin/dm
 chmod +x /usr/bin/dm

+ 2 - 2
src/shell/hook/elasticsearch

@@ -1,6 +1,6 @@
 #!/usr/bin/env sh
 set -e
 
-chmod -R 777 $2/container/share/process/
-chmod -R 777 $2/container/conf/elastic/elasticsearch/scripts/
+chmod -R 777 ${2}container/share/process/
+chmod -R 777 ${2}container/conf/elastic/elasticsearch/scripts/
 sysctl -w vm.max_map_count=362144

+ 2 - 2
src/shell/hook/hadoop

@@ -1,8 +1,8 @@
 #!/usr/bin/env sh
 set -e
 
-mkdir -p $2/container/share/lib/
-chmod -R 777 $2/container/share/lib/
+mkdir -p ${2}container/share/lib/
+chmod -R 777 ${2}container/share/lib/
 #path=${2}conf/java/hadoop
 #slave=${path}slaves
 #后续完成