Wildcard early OOM deb package revision (#1554)
This commit is contained in:
parent
cb0f19e4f1
commit
dfde83bdce
|
@ -13,8 +13,8 @@ sysctl -w kernel.sysrq=$(( $(cat /proc/sys/kernel/sysrq) | 64 ))
|
||||||
if command -v earlyoom; then
|
if command -v earlyoom; then
|
||||||
systemctl status earlyoom
|
systemctl status earlyoom
|
||||||
else
|
else
|
||||||
wget http://ftp.us.debian.org/debian/pool/main/e/earlyoom/earlyoom_1.1-2_amd64.deb
|
wget -r -l1 -np http://ftp.us.debian.org/debian/pool/main/e/earlyoom/ -A 'earlyoom_1.1-*_amd64.deb' -e robots=off -nd
|
||||||
apt install --quiet --yes ./earlyoom_1.1-2_amd64.deb
|
apt install --quiet --yes ./earlyoom_1.1-*_amd64.deb
|
||||||
|
|
||||||
cat > earlyoom <<OOM
|
cat > earlyoom <<OOM
|
||||||
# use the kernel OOM killer, trigger at 20% available RAM,
|
# use the kernel OOM killer, trigger at 20% available RAM,
|
||||||
|
|
Loading…
Reference in New Issue