JAVA_SERVER_ENV

by meigesir
11 deployments · 2 still active · last rev. 27 days ago

JAVA
TOMCAT
MYSQL
CENTOS

now support mysql...

Compatible with: CentOS 7
Includes: BASE_SCRIPT
						#!/bin/bash
# <UDF name="db_password" Label="MySQL root Password" />
# <UDF name="db_name" Label="Database Name" default="" example="Create this database" />
# <UDF name="db_user" Label="MySQL Username" default="" example="Create this user" />
# <UDF name="db_user_password" Label="MySQL Username Password" default="" example="User's password" />

source <ssinclude StackScriptID=270142>

system_update
mysql_install "$DB_PASSWORD"
mysql_create_database "$DB_PASSWORD" "$DB_NAME"
mysql_create_user "$DB_PASSWORD" "$DB_USER" "$DB_USER_PASSWORD"
mysql_grant_user "$DB_PASSWORD" "$DB_USER" "$DB_NAME"

java_install

tomcat_install