forked from Sci-Fi/el-scifi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathel.sh
executable file
·42 lines (38 loc) · 885 Bytes
/
el.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
# Easy Life SCIFI
#
# Configuration Tool for an Easy Life
# Version 20130819
#
# Cosme Faria Corrêa
# John Doe
# ...
#
# set -xv
# Start Variables
CurDir='/usr/share/el-scifi'
#ModDir=$CurDir'/modules/'
CFGFile=$CurDir'/confs/variables.sh'
Start=`date +%Y%m%d-%H%M%S`
Steps='Variables Install SELinux Network SNMPD Logs LDAP Apache Monitorix DNSMasq MRTG Nagios RADIUS Firewall SSHD DenyHosts NTPD Postfix ProgreSQL JBossAS SCIFIAPI SCIFIWeb SCIFIKernel Exit'
while true ; do
clear
. $CFGFile
cat <<-EOF
=========================================
| Easy Life for SCIFI |
=========================================
Steps, you must config:
EOF
select Step in $Steps; do
break
done
case "$Step" in
Exit)
exit
;;
*)
. $ModDir$Step.sh
;;
esac
done