blob: 43021d545ca5344c440e907caf467d4e43dbe90f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/sh
#
# usage: ./deploy HOST [[USER@]HOST]
#
set -euf
PATH="$PWD/bin${PATH+:$PATH}"
export PATH
user=root
host=$1
config=./modules/$host/default.nix
target=${2-$user@$host}
exec ssh-deploy "$config" "$target"
|