2021-11-30 18:20:42 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-01-13 03:16:02 +08:00
|
|
|
# Show wiki if vm.overcommit is disabled
|
2023-01-13 03:32:40 +08:00
|
|
|
if [ "$(sysctl -n vm.overcommit_memory)" != "1" ]; then
|
2023-01-13 03:32:47 +08:00
|
|
|
echo "Memory overcommit is disabled but necessary for safe operation"
|
2023-01-13 03:32:55 +08:00
|
|
|
echo "See https://github.com/nextcloud/all-in-one/discussions/1731 how to enable overcommit"
|
2023-01-13 03:16:02 +08:00
|
|
|
fi
|
|
|
|
|
2021-11-30 18:20:42 +08:00
|
|
|
# Run redis with a password if provided
|
|
|
|
if [ -n "$REDIS_HOST_PASSWORD" ]; then
|
|
|
|
exec redis-server --requirepass "$REDIS_HOST_PASSWORD"
|
|
|
|
else
|
|
|
|
exec redis-server
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec "$@"
|