This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2016-08-18 22:49:58 +02:00
|
|
|
#!/bin/sh
|
2017-10-22 15:37:03 +02:00
|
|
|
|
|
|
|
which sqlite3 > /dev/null 2>&1 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < dist/pvv.sql
|
|
|
|
test \! -e sql_config.php && cp dist/sql_config_example.php sql_config.php
|
|
|
|
|
2017-10-22 17:44:15 +02:00
|
|
|
test -e composer.phar || curl -O https://getcomposer.org/composer.phar
|
|
|
|
|
2017-10-22 15:37:03 +02:00
|
|
|
if test \! -d vendor; then
|
2017-10-22 17:44:15 +02:00
|
|
|
php composer.phar install
|
2017-10-22 15:37:03 +02:00
|
|
|
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
|
2017-10-22 17:32:54 +02:00
|
|
|
# cp -v vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php
|
|
|
|
sed -e "s/'trusted.url.domains' => array()/'trusted.url.domains' => array('localhost:1080')/g" < vendor/simplesamlphp/simplesamlphp/config-templates/config.php > vendor/simplesamlphp/simplesamlphp/config/config.php
|
2017-10-22 15:37:03 +02:00
|
|
|
ln -s ../vendor/simplesamlphp/simplesamlphp/www/ www/simplesaml
|
|
|
|
fi
|
|
|
|
|
2016-08-29 18:23:05 +02:00
|
|
|
php -S [::1]:1080 -t www/
|