#!/bin/sh
# On the laptop, as root: the new shikumi (7d0a302: the backend go and
# the git crates; the same builder_env_version 3 and S3), then the pull
# of the bundle and the switch of the system and of the home through the
# cache (aura/docs/instalacao.md, "Update").
set -eu
D=$(dirname "$0")
install -m 0644 "$D/aura.bundle" /root/aura.bundle
install -m 0755 "$D/shikumi" /root/shikumi
s3=$(readlink -f /shikumi/profiles/stdenv)
[ "$s3" = /shikumi/software/profile-env-1/1f7l72s966a5wgq4c3ryx0gri5bh6q38 ] ||
    { echo "the S3 of the laptop is not the S3 of the host: $s3" >&2; exit 1; }
SHIKUMI=/root/shikumi sh /shikumi/aura/install/aura-update.sh update laptop
