stockholm/deploy

16 lines
196 B
Plaintext
Raw Normal View History

2015-04-07 20:18:11 +00:00
#! /bin/sh
#
2015-04-07 23:07:01 +00:00
# usage: ./deploy HOST [[USER@]HOST]
2015-04-07 20:18:11 +00:00
#
set -euf
. ./lib/prelude.sh
user=root
host=$1
2015-04-07 23:07:01 +00:00
config=./modules/$host/default.nix
2015-04-07 20:18:11 +00:00
target=${2-$user@$host}
verbose deploy "$config" "$target"