-
Notifications
You must be signed in to change notification settings - Fork 0
/
Script_SplendidInstallation-FedoraWorkstation.sh
97 lines (71 loc) · 3.06 KB
/
Script_SplendidInstallation-FedoraWorkstation.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
# "Splendid installation" scripts for Fedora Workstation
# Copyright (C) 2021 Mislav Volaj
# Scripts version = 38.1
Show_LicenseNotices() {
echo "You are running \"Splendid installation\" scripts for Fedora Workstation!"
echo
echo "Copyright (C) 2021 Mislav Volaj"
echo
echo "This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version."
echo
echo "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details."
echo
echo "You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>."
}
CallScript_Pre-installation() {
echo "Calling pre-installation script..."
chmod +x "$WORKINGDIRECTORY"/Pre-installation/Script_Pre-installation.sh
"$WORKINGDIRECTORY"/Pre-installation/./Script_Pre-installation.sh
echo "Pre-installation script completed!"
}
CallScript_Installation() {
echo "Calling installation script..."
chmod +x "$WORKINGDIRECTORY"/Installation/Script_Installation.sh
"$WORKINGDIRECTORY"/Installation/./Script_Installation.sh
echo "Installation script completed!"
}
CallScript_Post-installation() {
echo "Calling post-installation script..."
chmod +x "$WORKINGDIRECTORY"/Post-installation/Script_Post-installation.sh
"$WORKINGDIRECTORY"/Post-installation/./Script_Post-installation.sh
echo "Post-installation script completed!"
}
CallScript_Maintenance() {
echo "Calling maintenance script..."
chmod +x "$WORKINGDIRECTORY"/Maintenance/Script_Maintenance.sh
"$WORKINGDIRECTORY"/Maintenance/./Script_Maintenance.sh
echo "Maintenance script completed!"
}
MainMenu() {
echo
PS3="Press 1 to exit, 2 to run all options or 3-6 to select an option to run: "
select options in "EXIT" "RUN ALL OPTIONS" "Call pre-installation script" "Call installation script" "Call post-installation script" "Call maintenance script"; do
case "$options" in
"EXIT" )
exit 0;;
"RUN ALL OPTIONS" )
CallScript_Pre-installation
CallScript_Installation
CallScript_Post-installation
CallScript_Maintenance
exit 0;;
"Call pre-installation script" )
CallScript_Pre-installation
MainMenu;;
"Call installation script" )
CallScript_Installation
MainMenu;;
"Call post-installation script" )
CallScript_Post-installation
MainMenu;;
"Call maintenance script" )
CallScript_Maintenance
MainMenu;;
esac
done
}
COLUMNS=1
WORKINGDIRECTORY="$(pwd)"
Show_LicenseNotices
MainMenu