-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_linux.sh
More file actions
29 lines (18 loc) · 916 Bytes
/
run_linux.sh
File metadata and controls
29 lines (18 loc) · 916 Bytes
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
#!/bin/bash
echo "Running setup scripts..."
chmod +x scripts/linux_debian/check_minecraft_server.sh
chmod +x scripts/linux_debian/install_dependencies.sh
chmod +x scripts/linux_debian/npm_install.sh
chmod +x scripts/linux_debian/start_servers.sh
# Navigate to the appropriate scripts directory
cd scripts/linux_debian || { echo "scripts/linux_debian not found"; exit 1; }
# Check and set up Minecraft server
./check_minecraft_server.sh || { echo "check_minecraft_server.sh failed"; exit 1; }
# Run dependency installation script
./install_dependencies.sh || { echo "install_dependencies.sh failed"; exit 1; }
# Run npm install script
./npm_install.sh || { echo "npm_install.sh failed"; exit 1; }
./start_servers.sh || { echo "start_servers.sh failed"; exit 1; }
cd .. || { echo "Failed to return to project root"; exit 1; }
echo "All scripts completed successfully."
read -rp "Press enter to continue..."