summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-04-07 22:18:11 +0200
committertv <tv@krebsco.de>2015-05-19 23:15:56 +0200
commitee0c09d16f1e857a9f37118babc5c2a061fa9cf1 (patch)
tree98207076bb84973f8fe9cfb83bdac81d08388e0e /deploy
parent47dbc30365f95fb5f3fe4ae963b013305b392518 (diff)
run -> {deploy,lib/prelude.sh}
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy b/deploy
new file mode 100755
index 0000000..d435ec8
--- /dev/null
+++ b/deploy
@@ -0,0 +1,15 @@
+#! /bin/sh
+#
+# usage: ./deploy CONFIG [[USER@]HOST]
+#
+set -euf
+
+. ./lib/prelude.sh
+
+user=root
+host=$1
+
+config=./$host.nix
+target=${2-$user@$host}
+
+verbose deploy "$config" "$target"