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:
Rafael Folco 2016-05-24 20:39:23 +00:00
parent de7bb9ff31
commit fd1004c424
1 changed files with 4 additions and 4 deletions

View File

@ -19,14 +19,14 @@ if is_service_enabled mysql && is_ubuntu; then
}
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
# nothing needed here
:
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing MariaDB"
install_mariadb
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Configuring MariaDB"
configure_mariadb
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# nothing needed here
:
fi
if [[ "$1" == "unstack" ]]; then
echo_summary "Stopping MariaDB"