Make dev.sh download gitmodules
Untested, it'll probably work
This commit is contained in:
parent
3c24435688
commit
80198d0d98
|
@ -22,7 +22,7 @@ On Windows, you have to perform a `composer install` manually beforehand. Make s
|
||||||
|
|
||||||
### Dependency management
|
### 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:
|
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]
|
[PHP]
|
||||||
|
|
5
dev.sh
5
dev.sh
|
@ -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
|
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
|
if test ! -d vendor; then
|
||||||
php composer.phar install || exit $?
|
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
|
||||||
|
|
Loading…
Reference in New Issue