Fix dev.sh

This commit is contained in:
Peder Bergebakken Sundt 2021-03-16 20:00:47 +01:00
parent 06e530061d
commit 523b30d6f5
1 changed files with 6 additions and 5 deletions

11
dev.sh
View File

@ -1,14 +1,15 @@
#!/bin/sh #!/bin/sh
which sqlite3 > /dev/null 2>&1 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < dist/pvv.sql which sqlite3 > /dev/null 2>&1 || (echo ERROR: sqlite not found; false) || exit 1
test \! -e sql_config.php && cp -v dist/sql_config_example.php sql_config.php test ! -e pvv.sqlite && sqlite3 pvv.sqlite < dist/pvv.sql
test ! -e sql_config.php && cp -v dist/sql_config_example.php sql_config.php
test \! -e dataporten_config.php && cp -v dist/dataporten_config.php dataporten_config.php test ! -e dataporten_config.php && cp -v dist/dataporten_config.php dataporten_config.php
test -e composer.phar || curl -O https://getcomposer.org/composer.phar test -e composer.phar || curl -O https://getcomposer.org/composer.phar
if test \! -d vendor; then if test ! -d vendor; then
php composer.phar install php composer.phar install || exit $?
cp -v dist/authsources_example.php vendor/simplesamlphp/simplesamlphp/config/authsources.php cp -v dist/authsources_example.php vendor/simplesamlphp/simplesamlphp/config/authsources.php
cp -v dist/saml20-idp-remote.php vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php cp -v dist/saml20-idp-remote.php vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
# cp -v vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php # cp -v vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php