fixed docker function

This commit is contained in:
Pakobbix 2023-02-06 22:05:58 +01:00 committed by GitHub
parent e463d963ba
commit 8b7562d3bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,8 @@ docker_run(){
# Überprüfe wieviel Arbeitsspeicher vorhanden ist, um bei Geräten mit weniger als 4 GB 1 GB als Sicherungs zu haben.
ram_avail=$(bc <<<"scale=2;$(($(free | awk 'NR==2 {print $2}') / 1000000))")
if ((ram_avail >= 3 && ram_avail <= 4)); then
ebesucher_docker "3g" "$CPUSet"
docker_run "3g" "$CPUSet"
elif [[ $ram_avail -ge "5" ]]; then
ebesucher_docker "4g" "$CPUSet"
docker_run "4g" "$CPUSet"
fi