stockholm/deploy

16 lines
196 B
Plaintext
Raw Normal View History

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