forked from mosip/inji-certify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·56 lines (50 loc) · 1 KB
/
install.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
install_sunbird_rc() {
cd ./docker-compose-sunbird
echo "Installing Sunbird RC"
bash setup_vault.sh docker-compose.yml vault
docker compose up -d
cd ..
}
install_esignet() {
read -p "Please update the properties and press enter: " choice
echo "Installing esignet"
cd ./docker-compose-esignet
docker compose up -d
cd ..
}
display_menu() {
echo "Select which services to install: "
echo "1. Sunbird RC"
echo "2. Esignet"
echo "0. Exit"
}
# Function to handle user input
handle_input() {
display_menu
read -p "Select: " choice
case $choice in
1)
install_sunbird_rc
;;
2)
install_esignet
;;
0)
echo "Exiting..."
exit 0
;;
*)
echo "Invalid choice. Please enter a number between 0 and 3."
handle_input
;;
esac
}
# Main function
main() {
while true; do
handle_input
done
}
# Start the script
main