setup-kapelu 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/script/setup.sh +14 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "setup-kapelu",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Script post-install de Ubuntu",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/script/setup.sh CHANGED
@@ -148,7 +148,7 @@ fi
148
148
 
149
149
  system_update() {
150
150
  clear
151
- echo -e " ${COLOR[green]}🔄 Actualizando sistema${COLOR[reset]}"
151
+ echo -e " ${COLOR[yellow]}🔄 Actualizando sistema${COLOR[reset]}"
152
152
  echo -e " ${COLOR[green]}⚠️ Dar autorización Root‼️ ${COLOR[reset]}"
153
153
  sudo apt update -y
154
154
  sudo apt upgrade -y
@@ -393,20 +393,28 @@ install_apt "${APT_DEV_TOOLS[@]}"
393
393
  ########################################
394
394
 
395
395
  setup_ssh() {
396
-
396
+ clear
397
397
  if [[ -f "$HOME/.ssh/id_ed25519" ]]; then
398
398
  echo "✔ SSH ya configurado"
399
399
  return
400
400
  fi
401
-
401
+ echo -e ' ${COLOR[green]}*********************************************${COLOR[reset]}'
402
+ echo -e ' ${COLOR[green]}* *${COLOR[reset]}'
403
+ echo -e ' ${COLOR[green]}* ${COLOR[yelow]}Crear Clave SSH${COLOR[reset]} *${COLOR[reset]}'
404
+ echo -e ' ${COLOR[green]}* *${COLOR[reset]}'
405
+ echo -e ' ${COLOR[green]}*********************************************${COLOR[reset]}'
406
+ read -rp "Nombre de la clave SSH: " KEY_NAME
402
407
  read -rp "Email SSH: " EMAIL
403
408
 
404
- ssh-keygen -t ed25519 -C "$EMAIL" -f "$HOME/.ssh/id_ed25519" -N ""
409
+ KEY_PATH="$HOME/.ssh/$KEY_NAME"
410
+
411
+ ssh-keygen -t ed25519 -C "$EMAIL" -f "$KEY_PATH" -N ""
405
412
 
413
+ ls -al ~/.ssh
406
414
  eval "$(ssh-agent -s)"
407
- ssh-add "$HOME/.ssh/id_ed25519"
415
+ ssh-add "$KEY_PATH"
408
416
 
409
- cat "$HOME/.ssh/id_ed25519.pub"
417
+ cat "$KEY_PATH.pub"
410
418
 
411
419
  }
412
420