From 8d9d791e9179a804c0ad92ba115cbfd94a75ff05 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 19 Feb 2018 21:46:41 +0100 Subject: [PATCH] +fix make www-data uid the owner of /ci files --- metactl/ci/web.sh | 3 ++- metactl/pre-start.sh | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/metactl/ci/web.sh b/metactl/ci/web.sh index 08f4501..fd92718 100644 --- a/metactl/ci/web.sh +++ b/metactl/ci/web.sh @@ -32,7 +32,8 @@ while true; do # N. Recreate trigger test ! -f $TRIGGER && touch $TRIGGER; - chmod o+rwx $TRIGGER; + chown 1001 $TRIGGER; + chmod 775 $TRIGGER; sleep 1; diff --git a/metactl/pre-start.sh b/metactl/pre-start.sh index 8f3d628..cd293ca 100644 --- a/metactl/pre-start.sh +++ b/metactl/pre-start.sh @@ -16,12 +16,14 @@ chmod o=rx `dirname $ROOT`/virtual/ci; # 2. Create 'env' trigger echo -ne " * Create 'env' trigger......"; test ! -f `dirname $ROOT`/virtual/ci/env && ( touch `dirname $ROOT`/virtual/ci/env && echo "created" || (echo "failed"; exit 1)) || echo "already"; -chmod o+rwx `dirname $ROOT`/virtual/ci/env; +chown 1001 `dirname $ROOT`/virtual/ci/env; +chmod 775 `dirname $ROOT`/virtual/ci/env; # 3. Create 'web' trigger echo -ne " * Create 'web' trigger......"; test ! -f `dirname $ROOT`/virtual/ci/web && ( touch `dirname $ROOT`/virtual/ci/web && echo "created" || (echo "failed"; exit 1)) || echo "already"; -chmod o+rwx `dirname $ROOT`/virtual/ci/web; +chown 1001 `dirname $ROOT`/virtual/ci/web; +chmod 775 `dirname $ROOT`/virtual/ci/web; # 3. Create 'env' spy echo -ne " * Launch 'env' spy..........";