SSH user update
This commit is contained in:
@@ -794,9 +794,8 @@ sleep 1
|
|||||||
# Choose the action
|
# Choose the action
|
||||||
ACTION_ANSWER=$(gum choose "[1] 🌐 Deploy NixOS on a remote machine" "[2] 💽 Deploy NixOS on a remote machine with a file configuration" "[3] 🛠️ Update a NixOS remote machine")
|
ACTION_ANSWER=$(gum choose "[1] 🌐 Deploy NixOS on a remote machine" "[2] 💽 Deploy NixOS on a remote machine with a file configuration" "[3] 🛠️ Update a NixOS remote machine")
|
||||||
|
|
||||||
TARGET_USER="nixos"
|
|
||||||
|
|
||||||
if [[ "$ACTION_ANSWER" == "[1] 🌐 Deploy NixOS on a remote machine" ]]; then
|
if [[ "$ACTION_ANSWER" == "[1] 🌐 Deploy NixOS on a remote machine" ]]; then
|
||||||
|
TARGET_USER="nixos"
|
||||||
echo -e "\n➡️ Proceeding with deployment…"
|
echo -e "\n➡️ Proceeding with deployment…"
|
||||||
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "➡️ On the target host : start the computer and boot into the NixOS iso.
|
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "➡️ On the target host : start the computer and boot into the NixOS iso.
|
||||||
Launch a console and set up a new user password"
|
Launch a console and set up a new user password"
|
||||||
@@ -819,6 +818,7 @@ if [[ "$ACTION_ANSWER" == "[1] 🌐 Deploy NixOS on a remote machine" ]]; then
|
|||||||
congrats
|
congrats
|
||||||
|
|
||||||
elif [[ "$ACTION_ANSWER" == "[2] 💽 Deploy NixOS on a remote machine with a file configuration" ]]; then
|
elif [[ "$ACTION_ANSWER" == "[2] 💽 Deploy NixOS on a remote machine with a file configuration" ]]; then
|
||||||
|
TARGET_USER="nixos"
|
||||||
echo -e "\n➡️ Proceeding with deployment using a config file…"
|
echo -e "\n➡️ Proceeding with deployment using a config file…"
|
||||||
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "➡️ On the target host : start the computer and boot into the NixOS iso.
|
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "➡️ On the target host : start the computer and boot into the NixOS iso.
|
||||||
Launch a console and set up a new user password"
|
Launch a console and set up a new user password"
|
||||||
@@ -839,6 +839,7 @@ elif [[ "$ACTION_ANSWER" == "[2] 💽 Deploy NixOS on a remote machine with a fi
|
|||||||
congrats
|
congrats
|
||||||
|
|
||||||
elif [[ "$ACTION_ANSWER" == "[3] 🛠️ Update a NixOS remote machine" ]]; then
|
elif [[ "$ACTION_ANSWER" == "[3] 🛠️ Update a NixOS remote machine" ]]; then
|
||||||
|
TARGET_USER="numbus-admin"
|
||||||
echo -e "\n➡️ Proceeding with update…"
|
echo -e "\n➡️ Proceeding with update…"
|
||||||
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "➡️ On the target host : make sure the NixOS installation you want
|
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "➡️ On the target host : make sure the NixOS installation you want
|
||||||
to update is up-and-running, accessible with SSH"
|
to update is up-and-running, accessible with SSH"
|
||||||
|
|||||||
Reference in New Issue
Block a user