-
-
Notifications
You must be signed in to change notification settings - Fork 245
/
bastion.sh
executable file
·67 lines (48 loc) · 930 Bytes
/
bastion.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
#!/bin/bash
cd "$(dirname "$0")" || cd . || (echo "This script should be run where Bastion is located." && exit 1)
echo
source ./scripts/bash/definitions.sh
source ./scripts/bash/logger.sh
if [ -n "$SUDO_USER" ]
then
echo
print::error "Root permission detected"
print::message "I do not need root permissions. Please run without using sudo."
echo
exit 1
fi
source ./scripts/bash/welcome.sh
source ./scripts/bash/checks.sh
source ./scripts/bash/methods.sh
case $1 in
--debug)
method::debug
;;
--restart)
method::stop
method::start
;;
--show)
method::show
;;
--start)
method::start
;;
--status)
method::status
;;
--stop)
method::stop
;;
--update)
method::update
;;
*)
method::help
;;
esac
echo
print::message "You can get help at Bastion HQ: https://discord.gg/fzx8fkt"
print::message "Join Bastion HQ and stay updated on important announcements, releases, giveaways, etc."
echo
# EOF