removed ssh key path

This commit is contained in:
2025-05-03 22:21:43 -05:00
parent 083dae99e0
commit 43a27ab3ba
+2 -10
View File
@@ -5,7 +5,6 @@ target_hostname=""
target_destination="" target_destination=""
target_user=${BOOTSTRAP_USER-root} # Set BOOTSTRAP_ defaults in your shell.nix target_user=${BOOTSTRAP_USER-root} # Set BOOTSTRAP_ defaults in your shell.nix
ssh_port=${BOOTSTRAP_SSH_PORT-22} ssh_port=${BOOTSTRAP_SSH_PORT-22}
ssh_key=${BOOTSTRAP_SSH_KEY-}
# ---HELPER FUNCTIONS START--- # ---HELPER FUNCTIONS START---
SOPS_FILE=".sops.yaml" SOPS_FILE=".sops.yaml"
@@ -72,14 +71,11 @@ function help_and_exit() {
echo echo
echo "Remotely installs NixOS on a target machine using this nix-config." echo "Remotely installs NixOS on a target machine using this nix-config."
echo echo
echo "USAGE: $0 -n <target_hostname> -d <target_destination> -k <ssh_key> [OPTIONS]" echo "USAGE: $0 -n <target_hostname> -d <target_destination> [OPTIONS]"
echo echo
echo "ARGS:" echo "ARGS:"
echo " -n <target_hostname> specify target_hostname of the target host to deploy the nixos config on." echo " -n <target_hostname> specify target_hostname of the target host to deploy the nixos config on."
echo " -d <target_destination> specify ip or domain to the target host." echo " -d <target_destination> specify ip or domain to the target host."
echo " -k <ssh_key> specify the full path to the ssh_key you'll use for remote access to the"
echo " target during install process."
echo " Example: -k /home/${target_user}/.ssh/my_ssh_key"
echo echo
echo "OPTIONS:" echo "OPTIONS:"
echo " -u <target_user> specify target_user with sudo access. nix-config will be cloned to their home." echo " -u <target_user> specify target_user with sudo access. nix-config will be cloned to their home."
@@ -105,10 +101,6 @@ while [[ $# -gt 0 ]]; do
shift shift
target_user=$1 target_user=$1
;; ;;
-k)
shift
ssh_key=$1
;;
--port) --port)
shift shift
ssh_port=$1 ssh_port=$1
@@ -125,7 +117,7 @@ while [[ $# -gt 0 ]]; do
shift shift
done done
if [ -z "$target_hostname" ] || [ -z "$target_destination" ] || [ -z "$ssh_key" ]; then if [ -z "$target_hostname" ] || [ -z "$target_destination" ]; then
echo "ERROR: -n, -d, and -k are all required" echo "ERROR: -n, -d, and -k are all required"
echo echo
help_and_exit help_and_exit