mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-02 08:06:17 +00:00
Update customizable_post_install.sh
This commit is contained in:
@@ -3047,7 +3047,7 @@ LIMIT_KB=$(grep '^SIZE=' "$CONF_FILE" | cut -d'=' -f2 | tr -d 'M')000
|
|||||||
USED_KB=$(df /var/log --output=used | tail -1)
|
USED_KB=$(df /var/log --output=used | tail -1)
|
||||||
THRESHOLD=$(( LIMIT_KB * 90 / 100 ))
|
THRESHOLD=$(( LIMIT_KB * 90 / 100 ))
|
||||||
if (( USED_KB > THRESHOLD )); then
|
if (( USED_KB > THRESHOLD )); then
|
||||||
/usr/sbin/log2ram write
|
$(command -v log2ram) write
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
chmod +x /usr/local/bin/log2ram-check.sh
|
chmod +x /usr/local/bin/log2ram-check.sh
|
||||||
|
Reference in New Issue
Block a user