+fix make www-data uid the owner of /ci files
This commit is contained in:
parent
28a960868b
commit
8d9d791e91
|
@ -32,7 +32,8 @@ while true; do
|
||||||
|
|
||||||
# N. Recreate trigger
|
# N. Recreate trigger
|
||||||
test ! -f $TRIGGER && touch $TRIGGER;
|
test ! -f $TRIGGER && touch $TRIGGER;
|
||||||
chmod o+rwx $TRIGGER;
|
chown 1001 $TRIGGER;
|
||||||
|
chmod 775 $TRIGGER;
|
||||||
|
|
||||||
sleep 1;
|
sleep 1;
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,14 @@ chmod o=rx `dirname $ROOT`/virtual/ci;
|
||||||
# 2. Create 'env' trigger
|
# 2. Create 'env' trigger
|
||||||
echo -ne " * 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";
|
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
|
# 3. Create 'web' trigger
|
||||||
echo -ne " * 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";
|
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
|
# 3. Create 'env' spy
|
||||||
echo -ne " * Launch 'env' spy..........";
|
echo -ne " * Launch 'env' spy..........";
|
||||||
|
|
Loading…
Reference in New Issue