scripts/deploy: if no host is specified, then deploy to the current host
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p nettools
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "deploy: deploy a nix config to a remote machine, possibly activating it"
|
echo "deploy: deploy a nix config to a remote machine, possibly activating it"
|
||||||
echo ""
|
echo ""
|
||||||
echo "usage: deploy [options] <host>"
|
echo "usage: deploy [options] [host]"
|
||||||
echo "options:"
|
echo "options:"
|
||||||
echo "- --action switch|test"
|
echo "- --action switch|test"
|
||||||
echo "- --variant light|min"
|
echo "- --variant light|min"
|
||||||
@@ -13,6 +14,7 @@ usage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
action=switch
|
action=switch
|
||||||
|
host=$(hostname)
|
||||||
variant=
|
variant=
|
||||||
nixArgs=()
|
nixArgs=()
|
||||||
parseArgs() {
|
parseArgs() {
|
||||||
|
Reference in New Issue
Block a user