-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathubuntu_setup.sh
executable file
·55 lines (49 loc) · 1.08 KB
/
ubuntu_setup.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
#!/bin/bash
function installDependencies {
apt update
apt install sqlite3
apt-get install libsqlite3-dev
apt install build-essential
apt install make
apt install jq
apt install inotify-tools
apt install cmake
}
function runBuildServer {
./scripts/deploy_example.sh
}
function runDevelopmentServer {
./monitor/monitor.sh
}
function runCleanDevelopmentServer {
./monitor/monitor.sh -c
}
# Menu for running the above functions
PS3="Select the Task to run: "
select commandToRun in "Install Dependencies" "Run Development Server" "Run Clean Development Server" "Build Server" Exit; do
case $commandToRun in
"Install Dependencies")
installDependencies
break
;;
"Run Development Server")
runDevelopmentServer
break
;;
"Run Clean Development Server")
runCleanDevelopmentServer
break
;;
"Build Server")
runBuildServer
break
;;
"Exit")
echo "Exiting the Script."
break
;;
*)
echo "Ooops"
;;
esac
done