#!/bin/sh set -eu if [ "$#" -ne 2 ]; then echo "usage: install.sh BUILT_BINARY DESTINATION_PREFIX" >&2 exit 2 fi source_binary=$1 destination_prefix=$2 test -f "$source_binary" install -d -m 0755 "$destination_prefix/bin" temporary="$destination_prefix/bin/.metacrate-grid-agent.new" install -m 0755 "$source_binary" "$temporary" mv -f "$temporary" "$destination_prefix/bin/metacrate-grid-agent" # Deliberately do not create, replace, migrate, or remove configuration, # secrets, conversations, landmarks, or audit journals.