From fac851faf9f285310d26a5212ae1bcade615d45b Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 14 Jun 2015 19:28:57 +0200 Subject: deploy: take optional target argument --- deploy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'deploy') diff --git a/deploy b/deploy index 6034196e1..e99794ed0 100755 --- a/deploy +++ b/deploy @@ -1,11 +1,9 @@ #! /bin/sh # -# usage: ./deploy HOST +# usage: ./deploy HOST [TARGET] # set -euf -host=$1 - export PATH="$PWD/bin:$PATH" #export nixpkgs=/var/nixpkgs export nixpkgs_root=$PWD/tmp/nixpkgs @@ -13,4 +11,4 @@ export config_root=$PWD export retiolum_hosts=$PWD/hosts export secrets_root=$PWD/secrets -exec nixos-deploy "$host" +exec nixos-deploy "$@" -- cgit v1.2.3