Skip to content

Commit

Permalink
Redis config after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner committed Nov 30, 2021
1 parent 0c4e497 commit d396382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/docker-php-entrypoint-drupal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set +e;

HTPASSWD_GREETING="${HTPASSWD_GREETING:-Sie greifen auf ein Testsystem der DDB zu. Bitte geben als Benutzer 'testsystem' und als Passwort ebenfalls 'testsystem' ein.}";
REDIS_MAXMEMORY="${REDIS_MAXMEMORY:-1gb}";
# HTPASSWD_USER -> HTTP Basic Auth User
# HTPASSWD_PWD -> HTTP Basic Auth Password

Expand All @@ -27,9 +26,6 @@ else
} > /etc/nginx/auth.conf;
fi;

/usr/bin/redis-cli config set maxmemory "${REDIS_MAXMEMORY}";
/usr/bin/redis-cli config set maxmemory-policy volatile-lru;

set -e;

docker-php-entrypoint;
Expand Down
4 changes: 4 additions & 0 deletions scripts/drupal-maintenance.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
UPDATEDB_ON_STARTUP="${UPDATEDB_ON_STARTUP:-no}";
CACHEREBUILD_ON_STARTUP="${CACHEREBUILD_ON_STARTUP:-no}";
REDIS_MAXMEMORY="${REDIS_MAXMEMORY:-1gb}";

if [ "$UPDATEDB_ON_STARTUP" = "yes" ]; then
echo "Start Drupal Update DB...";
Expand All @@ -11,3 +12,6 @@ if [ "$CACHEREBUILD_ON_STARTUP" = "yes" ]; then
echo "Start Drupal Cache Rebuild...";
/var/www/html/vendor/bin/drush -y --root /var/www/html/web cache-rebuild;
fi;

/usr/bin/redis-cli config set maxmemory "${REDIS_MAXMEMORY}";
/usr/bin/redis-cli config set maxmemory-policy volatile-lru;

0 comments on commit d396382

Please sign in to comment.