blob: 9bfbe0f36abb862bdbd63b09c5af45a64b536395 [file] [log] [blame]
#!/bin/bash -e
#
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Sets up the web server on the amarisoft callbox.
# If cargo is not installed:
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
systemctl stop cros_server
cp cros_server.service /etc/systemd/system/
cp -r cros_server /root/ || exit
cargo build --manifest-path /root/cros_server/Cargo.toml --release
systemctl daemon-reload
systemctl enable cros_server
systemctl start cros_server