2022-08-05 20:41:33 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-13 17:55:17 +00:00
|
|
|
# Copyright 2022 The ChromiumOS Authors
|
2022-08-05 20:41:33 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2022-08-25 01:15:45 +00:00
|
|
|
if [[ $OUTSIDE_GID != $(id -g crosvmdev) || $OUTSIDE_UID != $(id -u crosvmdev) ]]; then
|
2022-08-05 20:41:33 +00:00
|
|
|
groupmod -g "$OUTSIDE_GID" crosvmdev
|
|
|
|
usermod -u "$OUTSIDE_UID" crosvmdev
|
2022-08-25 01:15:45 +00:00
|
|
|
chown -R crosvmdev:crosvmdev /scratch
|
2022-08-05 20:41:33 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Transitional section to fix CI's cache permission
|
|
|
|
chmod -R 777 /cache
|
|
|
|
if [[ -d /workspace/infra/.recipe_deps ]]; then
|
|
|
|
chmod -R 777 /workspace/infra/.recipe_deps
|
|
|
|
fi
|