зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1204516 - Ignore missing directories when changing ownership of cache directories in build.sh. r=dustin
This commit is contained in:
Родитель
62784ad09c
Коммит
8c6f9cfce8
|
@ -8,9 +8,11 @@ if [ $(id -u) = 0 ]; then
|
|||
# each of the caches we have mounted are owned by root, so update that ownership
|
||||
# to 'worker'
|
||||
for cache in /home/worker/.tc-vcs /home/worker/workspace /home/worker/tooltool-cache; do
|
||||
# -R probably isn't necessary forever, but it fixes some poisoned
|
||||
# caches for now
|
||||
chown -R worker:worker $cache
|
||||
if [ -d $cache ]; then
|
||||
# -R probably isn't necessary forever, but it fixes some poisoned
|
||||
# caches for now
|
||||
chown -R worker:worker $cache
|
||||
fi
|
||||
done
|
||||
|
||||
# ..then drop privileges by re-running this script
|
||||
|
|
Загрузка…
Ссылка в новой задаче