-
Notifications
You must be signed in to change notification settings - Fork 6
/
20-akanda.sh
42 lines (35 loc) · 1.01 KB
/
20-akanda.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
# -*- mode: shell-script -*-
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/akanda
source $TOP_DIR/patches/utils
# The akanda-devstack/patches folder needs to be already linked to devstack/patches so that we can refer to
# it here using the TOP_DIR variable.
PATCHES_FOLDER=$TOP_DIR/patches
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Akanda"
set_neutron_user_permission
install_akanda
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Patching Neutron"
old_cwd=$PWD
cd $DEST/neutron
patch_neutron
echo_summary "Installing Akanda"
configure_akanda
configure_akanda_nova
configure_akanda_neutron
cd $old_cwd
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Akanda"
pre_start_akanda
start_akanda_rug
post_start_akanda
fi
if [[ "$1" == "unstack" ]]; then
stop_akanda_rug
fi
if [[ "$1" == "clean" ]]; then
# no-op
:
fi