mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
update hash
This commit is contained in:
@@ -75,7 +75,7 @@ sha256sum du_setup.sh
|
|||||||
|
|
||||||
Compare the output hash to the one below. They must match exactly.
|
Compare the output hash to the one below. They must match exactly.
|
||||||
|
|
||||||
`891eb9bf1e1c2b51c9ba008d330612cade70a2c929e033dbd570259fa30ff33d`
|
`e41a6ffcabd4eb30673aebe096de41f8cbbc9bb5824a509e9c1c41e4845ef78f`
|
||||||
|
|
||||||
### 3\. Run the Script
|
### 3\. Run the Script
|
||||||
|
|
||||||
|
|||||||
37
du_setup.sh
37
du_setup.sh
@@ -54,14 +54,27 @@ set -euo pipefail # Exit on error, undefined vars, pipe failures
|
|||||||
|
|
||||||
# --- GLOBAL VARIABLES & CONFIGURATION ---
|
# --- GLOBAL VARIABLES & CONFIGURATION ---
|
||||||
|
|
||||||
# Colors for output
|
# --- Colors for output ---
|
||||||
RED='\033[0;31m'
|
if command -v tput >/dev/null 2>&1 && tput setaf 1 >/dev/null 2>&1; then
|
||||||
GREEN='\033[0;32m'
|
RED=$(tput setaf 1)
|
||||||
YELLOW='\033[1;33m'
|
GREEN=$(tput setaf 2)
|
||||||
BLUE='\033[0;34m'
|
YELLOW="$(tput bold)$(tput setaf 3)"
|
||||||
PURPLE='\033[0;35m'
|
BLUE=$(tput setaf 4)
|
||||||
CYAN='\033[0;36m'
|
PURPLE=$(tput setaf 5)
|
||||||
NC='\033[0m' # No Color
|
CYAN=$(tput setaf 6)
|
||||||
|
BOLD=$(tput bold)
|
||||||
|
NC=$(tput sgr0)
|
||||||
|
else
|
||||||
|
RED='\033[0;31m'
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
YELLOW='\033[1;33m'
|
||||||
|
BLUE='\033[0;34m'
|
||||||
|
PURPLE='\033[0;35m'
|
||||||
|
CYAN='\033[0;36m'
|
||||||
|
NC='\033[0m'
|
||||||
|
BOLD=''
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Script variables
|
# Script variables
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
@@ -488,14 +501,14 @@ setup_user() {
|
|||||||
echo
|
echo
|
||||||
echo -e "${PURPLE}ℹ ACTION REQUIRED: Save the keys to your local machine:${NC}"
|
echo -e "${PURPLE}ℹ ACTION REQUIRED: Save the keys to your local machine:${NC}"
|
||||||
echo -e "${CYAN}1. Save the PRIVATE key to ~/.ssh/${USERNAME}_key:${NC}"
|
echo -e "${CYAN}1. Save the PRIVATE key to ~/.ssh/${USERNAME}_key:${NC}"
|
||||||
echo "${RED} ==PRIVATE KEY BELOW THIS LINE== ${NC}"
|
echo -e "${RED} vvvv PRIVATE KEY BELOW THIS LINE vvvv ${NC}"
|
||||||
cat "$TEMP_KEY_FILE"
|
cat "$TEMP_KEY_FILE"
|
||||||
echo "${RED} ^^^^ PRIVATE KEY ABOVE THIS LINE ^^^^^ ${NC}"
|
echo -e "${RED} ^^^^ PRIVATE KEY ABOVE THIS LINE ^^^^^ ${NC}"
|
||||||
echo
|
echo
|
||||||
echo -e "${CYAN}2. Save the PUBLIC key to verify or use elsewhere:${NC}"
|
echo -e "${CYAN}2. Save the PUBLIC key to verify or use elsewhere:${NC}"
|
||||||
echo "-----SSH PUBLIC KEY-----"
|
echo "====SSH PUBLIC KEY BELOW THIS LINE===="
|
||||||
cat "$SSH_DIR/id_ed25519.pub"
|
cat "$SSH_DIR/id_ed25519.pub"
|
||||||
echo "-----SSH PUBLIC KEY-----"
|
echo "====SSH PUBLIC KEY END===="
|
||||||
echo
|
echo
|
||||||
echo -e "${CYAN}3. On your local machine, set permissions for the private key:${NC}"
|
echo -e "${CYAN}3. On your local machine, set permissions for the private key:${NC}"
|
||||||
echo -e "${CYAN} chmod 600 ~/.ssh/${USERNAME}_key${NC}"
|
echo -e "${CYAN} chmod 600 ~/.ssh/${USERNAME}_key${NC}"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
891eb9bf1e1c2b51c9ba008d330612cade70a2c929e033dbd570259fa30ff33d du_setup.sh
|
e41a6ffcabd4eb30673aebe096de41f8cbbc9bb5824a509e9c1c41e4845ef78f du_setup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user