Wildcard early OOM deb package revision (#1554) (#1568)

This commit is contained in:
Pankaj Garg
2018-10-22 10:59:22 -07:00
committed by GitHub
parent 83fa02ee44
commit 609889cc58

View File

@ -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,