| #!/bin/bash |
| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Run Google Storage archive server from inside virtual environment. |
| set -eu |
| readonly bindir=$(dirname -- "$(readlink -e -- "$0")") |
| readonly homedir=$(cd "${bindir}"/../gs_cache; pwd) |
| readonly nebraska_dir=$(cd "${bindir}"/../nebraska; pwd) |
| export PYTHONPATH=${homedir}:${nebraska_dir} |
| |
| exec vpython -vpython-spec "${homedir}"/.vpython -m gs_archive_server "$@" |