• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2# Copyright 2022 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6if [[ $OUTSIDE_GID != $(id -g crosvmdev) || $OUTSIDE_UID != $(id -u crosvmdev) ]]; then
7    groupmod -g "$OUTSIDE_GID" crosvmdev
8    usermod -u "$OUTSIDE_UID" crosvmdev
9    chown -R crosvmdev:crosvmdev /scratch
10fi
11
12# Transitional section to fix CI's cache permission
13chmod -R 777 /cache
14if [[ -d /workspace/infra/.recipe_deps ]]; then
15    chmod -R 777 /workspace/infra/.recipe_deps
16fi
17