From 563e6d4b8b4c5096a61a338595dd5406b384fa90 Mon Sep 17 00:00:00 2001 From: 5uhwann <5uhwann27@gmail.com> Date: Tue, 9 Jul 2024 15:55:25 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=84=9C=EB=B2=84=20mysql=20=EC=84=A4=EC=B9=98=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ebextensions/00-install-test-mysql.config | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 .ebextensions/00-install-test-mysql.config diff --git a/.ebextensions/00-install-test-mysql.config b/.ebextensions/00-install-test-mysql.config deleted file mode 100644 index c2938c2b..00000000 --- a/.ebextensions/00-install-test-mysql.config +++ /dev/null @@ -1,40 +0,0 @@ -option_settings: - - namespace: aws:elasticbeanstalk:application:environment - option_name: ENV_TYPE - value: test - -commands: - 01_check_env: - command: | - if [ "$ENV_TYPE" = "test" ]; then - echo "This is a test environment. Proceeding with MySQL installation." - else - echo "This is not a test environment. Skipping MySQL installation." - exit 0 - fi - 02_install_mysql: - test: '[ "$ENV_TYPE" = "test" ]' - command: | - yum install -y mysql-server mysql - 03_start_mysql: - test: '[ "$ENV_TYPE" = "test" ]' - command: "service mysqld start" - 04_create_database: - test: '[ "$ENV_TYPE" = "test" ]' - command: "mysql -e 'CREATE DATABASE IF NOT EXISTS ddingdong_test;'" - 05_create_user: - test: '[ "$ENV_TYPE" = "test" ]' - command: "mysql -e \"CREATE USER IF NOT EXISTS 'admin'@'localhost' IDENTIFIED BY 'ddingdong';\"" - 06_grant_privileges: - test: '[ "$ENV_TYPE" = "test" ]' - command: "mysql -e \"GRANT ALL PRIVILEGES ON myapp.* TO 'admin'@'localhost';\"" - 07_flush_privileges: - test: '[ "$ENV_TYPE" = "test" ]' - command: "mysql -e 'FLUSH PRIVILEGES;'" - -services: - sysvinit: - mysqld: - enabled: true - ensureRunning: true - test: '[ "$ENV_TYPE" = "test" ]'