-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmedia-rollout.sh
More file actions
executable file
·54 lines (49 loc) · 1.17 KB
/
Copy pathmedia-rollout.sh
File metadata and controls
executable file
·54 lines (49 loc) · 1.17 KB
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
#!/usr/bin/env bash
#===============================================================================
# FILE: media_rollout.sh
# USAGE: ./media_rollout.sh
# DESCRIPTION: This script rolls out a media stack
# Check help for description
# OPTIONS: Check help
# REQUIREMENTS: fresh ubuntu server install
# BUGS: probably a bunch
# AUTHOR: cesar@pissedoffadmins.com
# ORGANIZATION: pissedoffadmins.com
# CREATED: 11/23/2019
#===============================================================================
readonly PROGNAME=$(basename $0)
readonly PROGDIR=$(readlink -m $(dirname $0))
## source all the shlib's
for ITER in shlib/*.shlib
do
source ${ITER}
done
clear
## option selection
while getopts "CcDdRrGgHhIi" OPT
do
case "${OPT}" in
[Cc])
_menu configure
;;
[Dd]|[Rr])
_menu remove
;;
[Gg])
_info >&2
exit 0
;;
[Ii])
_menu install
;;
[Hh]|*)
_usage >&2
exit 1
;;
esac
done
if [[ ${OPTIND} -eq 1 ]]
then
_usage >&2
exit 1
fi