16 lines
196 B
Bash
Executable file
16 lines
196 B
Bash
Executable file
#! /bin/sh
|
|
#
|
|
# usage: ./deploy HOST [[USER@]HOST]
|
|
#
|
|
set -euf
|
|
|
|
. ./lib/prelude.sh
|
|
|
|
user=root
|
|
host=$1
|
|
|
|
config=./modules/$host/default.nix
|
|
target=${2-$user@$host}
|
|
|
|
verbose deploy "$config" "$target"
|