Skip to content

Commit

Permalink
Create entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jonstout authored Mar 6, 2020
1 parent dd7104a commit be16346
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions perl-lib/OESS/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

pwd
ls -la

cp perl-lib/OESS/t/conf/database.xml /etc/oess/database.xml
cp perl-lib/OESS/t/conf/passwd.xml /etc/oess/.passwd.xml

rm -rf /usr/share/perl5/vendor_perl/OESS
# cp perl-lib/OESS/lib/OESS /usr/share/perl5/vendor_perl

/usr/bin/mysql_install_db --user=mysql --ldata=/var/lib/mysql --force
/usr/bin/mysqld_safe --datadir='/var/lib/mysql' &
sleep 3

/usr/bin/mysqladmin -u root password test


cd perl-lib/OESS
perl Makefile.PL
make
make test

0 comments on commit be16346

Please sign in to comment.