Package portable grid agent operation (#134)
This commit is contained in:
18
packaging/metacrate-grid-agent/install.sh
Executable file
18
packaging/metacrate-grid-agent/install.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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.
|
||||
Reference in New Issue
Block a user