From 05e8ddc7f798dbec4b4d54ffc56c45c3acd791a2 Mon Sep 17 00:00:00 2001 From: Animesh Balse <41792325+animeshb27@users.noreply.github.com> Date: Thu, 26 Mar 2020 18:52:51 -0400 Subject: [PATCH 1/4] Update install_db.sh --- configuration/arm64/mysql/install_db.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/configuration/arm64/mysql/install_db.sh b/configuration/arm64/mysql/install_db.sh index 362aa3c75..4c69cff93 100644 --- a/configuration/arm64/mysql/install_db.sh +++ b/configuration/arm64/mysql/install_db.sh @@ -3,4 +3,3 @@ mysql -uroot -pivp --silent -e "SHOW STATUS WHERE Variable_name = 'Uptime' and Value > 0;" mysql -uroot -pivp -e "CREATE DATABASE IF NOT EXISTS IVP; GRANT ALL PRIVILEGES ON IVP.* To 'IVP'@'127.0.0.1' IDENTIFIED BY 'ivp';" mysql -v -uIVP -pivp IVP < /docker-entrypoint-initdb.d/localhost.sql -mysql -uroot -pivp --silent -e "INSERT INTO IVP.user (IVP.user.username, IVP.user.password, IVP.user.accessLevel) VALUES('$username', '$password', 3)" From ed4066cab48427e50b151b9e0f7fc0b8085a8194 Mon Sep 17 00:00:00 2001 From: Animesh Balse <41792325+animeshb27@users.noreply.github.com> Date: Thu, 26 Mar 2020 18:54:13 -0400 Subject: [PATCH 2/4] Add files via upload --- configuration/arm64/mysql/script_credentials.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 configuration/arm64/mysql/script_credentials.sh diff --git a/configuration/arm64/mysql/script_credentials.sh b/configuration/arm64/mysql/script_credentials.sh new file mode 100644 index 000000000..147ab360f --- /dev/null +++ b/configuration/arm64/mysql/script_credentials.sh @@ -0,0 +1,2 @@ +#!/bin/sh -x +mysql -uroot -pivp --silent -e "INSERT INTO IVP.user (IVP.user.username, IVP.user.password, IVP.user.accessLevel) VALUES('$username', '$password', 3)" From 0973a3f56ca0276a8312eb33d6229fa522d3b8bd Mon Sep 17 00:00:00 2001 From: Animesh Balse <41792325+animeshb27@users.noreply.github.com> Date: Thu, 26 Mar 2020 18:55:18 -0400 Subject: [PATCH 3/4] Added script_essentials --- configuration/arm64/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/configuration/arm64/docker-compose.yml b/configuration/arm64/docker-compose.yml index df7454ad6..9478da218 100644 --- a/configuration/arm64/docker-compose.yml +++ b/configuration/arm64/docker-compose.yml @@ -17,6 +17,7 @@ services: - "mysql_db:/var/lib/mysql" - ./mysql/install_db.sh:/docker-entrypoint-initdb.d/install_db.sh - ./mysql/localhost.sql:/docker-entrypoint-initdb.d/localhost.sql + - ./mysql/script_credentials.sh:/docker-entrypoint-initdb.d/script_credentials.sh volumes: mysql_db: From 7b1f029f7a8bdbfe524008bd75b6a4aca8070fe6 Mon Sep 17 00:00:00 2001 From: Animesh Balse <41792325+animeshb27@users.noreply.github.com> Date: Thu, 26 Mar 2020 18:55:51 -0400 Subject: [PATCH 4/4] Added script_essentials --- configuration/arm64/post-initialization.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/configuration/arm64/post-initialization.yml b/configuration/arm64/post-initialization.yml index 43af014c6..1d7dca5f7 100644 --- a/configuration/arm64/post-initialization.yml +++ b/configuration/arm64/post-initialization.yml @@ -17,6 +17,7 @@ services: - "mysql_db:/var/lib/mysql" - ./mysql/install_db.sh:/docker-entrypoint-initdb.d/install_db.sh - ./mysql/localhost.sql:/docker-entrypoint-initdb.d/localhost.sql + - ./mysql/script_credentials.sh:/docker-entrypoint-initdb.d/script_credentials.sh php: image: php:7.2.2-apache