-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·62 lines (46 loc) · 1.64 KB
/
Copy pathbootstrap.sh
File metadata and controls
executable file
·62 lines (46 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env bash
set -euo pipefail
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
print_msg() {
echo -e "${BLUE}==>${NC} ${GREEN}$1${NC}"
}
# Function to handle errors
error_exit() {
echo "Error: $1" >&2
exit 1
}
# Set installation directory to current directory
INSTALL_DIR="$(pwd)"
# Run the setup script first
print_msg "Running initial setup..."
./install/scripts/setup.sh install || error_exit "Failed to run setup script"
# Install the tool
print_msg "Installing arch-setup..."
sudo make install || error_exit "Failed to install arch-setup"
# Initialize the tool
print_msg "Initializing arch-setup..."
arch-setup install
print_msg "Installation complete! You can now use 'arch-setup' from anywhere."
print_msg "Try 'arch-setup help' to see available commands."
# Configure network using environment file
print_msg "Configuring network..."
sudo ./install/scripts/configure-network.sh --env || error_exit "Failed to configure network"
# Run the development environment setup script
print_msg "Setting up development environment..."
./install/scripts/setup-dev-env.sh
# Run the Node.js tools setup script
print_msg "Setting up Node.js tools..."
./install/scripts/setup-node-tools.sh
# Run the CLI tools and security setup script
print_msg "Setting up CLI tools and security..."
./install/scripts/setup-cli-tools.sh
# Run the AWS CLI and Font Awesome setup script
print_msg "Setting up AWS CLI and Font Awesome..."
./install/scripts/setup-aws-fonts.sh
# Run the i3 setup script
print_msg "Setting up i3 window manager..."
./install/scripts/setup-i3.sh
print_msg "Final setup complete! Your system is now fully configured."