-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1-Init.sh
executable file
·42 lines (34 loc) · 1.4 KB
/
1-Init.sh
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
#!/bin/bash
# ---------------------------------------------------------
# MultiversX API Deployer - Initialize the Server
# ---------------------------------------------------------
# Load configuration variables
source config.cfg
# Import common functions and server preparation scripts
source scripts/0-common.sh
source scripts/1-server.sh
Log-Title "MultiversX API Deployer - Initialize the Server"
# ---------------------------------------------------------
# Validate Configuration and Machine Specifications
# ---------------------------------------------------------
Verify_Configuration
# ---------------------------------------------------------
# Upgrade System Packages
# ---------------------------------------------------------
Upgrade_System
# ---------------------------------------------------------
# Install Docker and Docker Compose
# ---------------------------------------------------------
Install_Docker
# ---------------------------------------------------------
# Update .bashrc
# ---------------------------------------------------------
Append_Bashrc
source ~/.bashrc
# ---------------------------------------------------------
# Instructions for the User
# ---------------------------------------------------------
Log-Title "Server Initialization Completed"
Log "Please proceed with the next script to install the required services by running:"
Log " cd $HOME/mvx-api-deployer"
Log " ./2-Install.sh"