Changing stack phases actions
stack: pre-install, install, post-config pre-install: installs mariadb install: configure mariadb post-config: noop
This commit is contained in:
@@ -19,14 +19,14 @@ if is_service_enabled mysql && is_ubuntu; then
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
||||||
# nothing needed here
|
|
||||||
:
|
|
||||||
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
||||||
echo_summary "Installing MariaDB"
|
echo_summary "Installing MariaDB"
|
||||||
install_mariadb
|
install_mariadb
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||||
echo_summary "Configuring MariaDB"
|
echo_summary "Configuring MariaDB"
|
||||||
configure_mariadb
|
configure_mariadb
|
||||||
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
|
# nothing needed here
|
||||||
|
:
|
||||||
fi
|
fi
|
||||||
if [[ "$1" == "unstack" ]]; then
|
if [[ "$1" == "unstack" ]]; then
|
||||||
echo_summary "Stopping MariaDB"
|
echo_summary "Stopping MariaDB"
|
||||||
|
Reference in New Issue
Block a user