diff options
author | lassulus <lass@aidsballs.de> | 2015-06-14 20:57:19 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-06-14 20:57:19 +0200 |
commit | cb70769a04166a7c7a0d8e92a23f9ae76f768259 (patch) | |
tree | 27572e3f2fa4f7e715c64c36619b7a96a223078e /deploy | |
parent | e59d4f45c04431605a2c2f2988d3127e8982fda7 (diff) |
deploy: take target as optional argument
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,10 +1,11 @@ #! /bin/sh # -# usage: ./deploy HOST +# usage: ./deploy system_name [target] # set -euf -host=$1 +system_name=$1 +target=${2-root@$system_name} export PATH="$PWD/bin:$PATH" #export nixpkgs=/var/nixpkgs @@ -13,4 +14,4 @@ export config_root=$PWD export retiolum_hosts=$PWD/hosts export secrets_root=$PWD/secrets -exec nixos-deploy "$host" +exec nixos-deploy "$system_name" "$target" |