appstore-1panel/apps/sonarqube/10.6.0-community/scripts/init.sh
renovate[bot] 1cc4ab59fe
chore(deps): update sonarqube docker tag to v10.6.0 (#1643)
* chore(deps): update sonarqube docker tag to v10.6.0

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2024-06-25 15:01:38 +08:00

10 lines
271 B
Bash

#!/bin/bash
if [ -f "/etc/sysctl.conf" ]; then
grep -qxF 'vm.max_map_count=262144' /etc/sysctl.conf || echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf >/dev/null
else
sysctl -w vm.max_map_count=262144
fi
chown -R 1000:1000 data