diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 3 | ||||
-rwxr-xr-x | scripts/update.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index 8b7ea03f..3a4a33ab 100755 --- a/scripts/install.sh +++ b/scripts/install.sh | |||
@@ -26,5 +26,8 @@ ENV=$1 | |||
26 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | 26 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) |
27 | 27 | ||
28 | git checkout $TAG | 28 | git checkout $TAG |
29 | if [ -n "$LDAP_ENABLED" ]; then | ||
30 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND require --no-update fr3d/ldap-bundle | ||
31 | fi | ||
29 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist | 32 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist |
30 | php bin/console wallabag:install --env=$ENV | 33 | php bin/console wallabag:install --env=$ENV |
diff --git a/scripts/update.sh b/scripts/update.sh index c62d104a..6259a431 100755 --- a/scripts/update.sh +++ b/scripts/update.sh | |||
@@ -32,6 +32,9 @@ git fetch origin | |||
32 | git fetch --tags | 32 | git fetch --tags |
33 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | 33 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) |
34 | git checkout $TAG --force | 34 | git checkout $TAG --force |
35 | if [ -n "$LDAP_ENABLED" ]; then | ||
36 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND require --no-update fr3d/ldap-bundle | ||
37 | fi | ||
35 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist | 38 | SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist |
36 | php bin/console doctrine:migrations:migrate --no-interaction --env=$ENV | 39 | php bin/console doctrine:migrations:migrate --no-interaction --env=$ENV |
37 | php bin/console cache:clear --env=$ENV | 40 | php bin/console cache:clear --env=$ENV |