Fix dev.sh
This commit is contained in:
parent
06e530061d
commit
523b30d6f5
11
dev.sh
11
dev.sh
|
@ -1,14 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
which sqlite3 > /dev/null 2>&1 && 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
|
||||
which sqlite3 > /dev/null 2>&1 || (echo ERROR: sqlite not found; false) || exit 1
|
||||
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
|
||||
|
||||
if test \! -d vendor; then
|
||||
php composer.phar install
|
||||
if test ! -d vendor; then
|
||||
php composer.phar install || exit $?
|
||||
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 vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php
|
||||
|
|
Reference in New Issue