fix server install and inspections

This commit is contained in:
Dennis Eichhorn 2023-10-01 02:59:02 +00:00
parent 72f2912f13
commit cfd5fdf84f
3 changed files with 11 additions and 2 deletions

View File

@ -63,12 +63,15 @@ mysql -u root -p
CREATE USER 'jingga'@'%' IDENTIFIED BY 'dYg8#@wLiWJ3vE';
CREATE USER 'demo'@'%' IDENTIFIED BY 'orange';
CREATE USER 'test'@'%' IDENTIFIED BY 'orange';
CREATE DATABASE jingga COMMENT 'Main application database';
CREATE DATABASE demo COMMENT 'Demo application database';
CREATE DATABASE omt COMMENT 'Tests';
GRANT ALL PRIVILEGES ON jingga.* TO 'jingga'@'%';
GRANT ALL PRIVILEGES ON demo.* TO 'demo'@'%';
GRANT ALL PRIVILEGES ON omt.* TO 'test'@'%';
FLUSH PRIVILEGES;

View File

@ -7,8 +7,8 @@
echo "#################################################"
echo "Setup database"
echo "#################################################"
mysql -e 'drop database if exists omb;' -u ${DB_USER} --password="${DB_PASSWORD}"
mysql -e 'create database omb;' -u ${DB_USER} --password="${DB_PASSWORD}"
mysql -e 'drop database if exists omt;' -u ${DB_USER} --password="${DB_PASSWORD}"
mysql -e 'create database omt;' -u ${DB_USER} --password="${DB_PASSWORD}"
# Build js
#. Js/build.sh

6
php.sh
View File

@ -12,6 +12,12 @@ fi
INSPECTION_PATH="$1"
OUTPUT_PATH="$2"
if [ "$OUTPUT_PATH" == "/" ] || [ "$OUTPUT_PATH" == "/etc" ]; then
echo "Bad path"
exit 1
fi
rm -rf ${OUTPUT_PATH}
mkdir -p ${OUTPUT_PATH}
mkdir -p ${OUTPUT_PATH}/coverage
mkdir -p ${OUTPUT_PATH}/phpunit