-
Notifications
You must be signed in to change notification settings - Fork 1
/
master.sh
66 lines (57 loc) · 1.74 KB
/
master.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
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo -e "Please run the script as root, or using sudo\n"
exit
fi
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
echo -e "Starting the installer...\n"
echo -e -n "The installer is running within the path: $PWD\n\n"
if [ -f ./.global/ext-pkg/_is_cloning_properly ] && \
[ -f ./.global/tutorials-notebooks/_is_cloning_properly ] && \
[ -f ./.global/tutorials-notebooks/jupyter-cpp-kernel-doc/_is_cloning_properly ] && \
[ -f ./.global/web-portal/_is_cloning_properly ]; then
echo "..."
else
echo "Failed to check the current git status. Failing the installer"
exit
fi
CONFIRM="n"
echo -n "Do you wish to start the installer [Y/N]?: "
read -n 1 CONFIRM_INPUT
if [[ "${CONFIRM_INPUT}" =~ ^[Yy]$ ]]; then
cat ./welcome.txt
else
echo -e "Exiting the installer..."
exit
fi
chmod +x ./linux/*.sh
./linux/update_apt_repo.sh
if [ $? -eq 0 ]; then
echo "[LABS PORTAL APT CP] APT Processes is finished."
else
echo "[LABS PORTAL APT CP] APT Processes is failed. Failing the installer..."
exit
fi
./linux/install_pip_npm.sh
if [ $? -eq 0 ]; then
echo "[LABS PORTAL PIP+NPM CP] PIP+NPM Processes is finished."
else
echo "[LABS PORTAL PIP+NPM CP] PIP+NPM Processes is failed. Failing the installer..."
exit
fi
./linux/copy-configs.sh
if [ $? -eq 0 ]; then
echo "[LABS PORTAL CF CP] Configuration copying is finished."
else
echo "[LABS PORTAL CF CP] Configuration copying is failed. Failing the installer..."
exit
fi
./linux/linux_install.sh
if [ $? -eq 0 ]; then
echo "[LABS PORTAL LX CP] Linux customization copying is finished."
else
echo "[LABS PORTAL LX CP] Linux customization copying is failed. Failing the installer..."
exit
fi
echo "[LABS PORTAL Installation] The installation is finished!"