Make dev.sh download gitmodules

Untested, it'll probably work
This commit is contained in:
Peder Bergebakken Sundt 2021-03-16 20:49:25 +01:00
parent 3c24435688
commit 80198d0d98
2 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,7 @@ On Windows, you have to perform a `composer install` manually beforehand. Make s
### Dependency management
`dev.sh` will download the `composer` package manager to the php archive file `composer.phar` and run it.
`dev.sh` will ensure the git submodules have been pulled, then download the `composer` package manager to the php archive file `composer.phar` and run it.
Composer will check for the php extension `pdo_sqlite` which must be enabled on your system. This usually includes installing a php-sqlite3 package and enabling it in /etc/php/php.ini:
[PHP]

5
dev.sh
View File

@ -8,6 +8,11 @@ test ! -e dataporten_config.php && cp -v dist/dataporten_config.php dataporten_c
test -e composer.phar || curl -O https://getcomposer.org/composer.phar
if test ! -f lib/OAuth2-Client/OAuth2Client.php ; then
echo Missing git submodules. Installing...
(set -x; git submodule update --init --recursive) || exit $?
fi
if test ! -d vendor; then
php composer.phar install || exit $?
cp -v dist/authsources_example.php vendor/simplesamlphp/simplesamlphp/config/authsources.php