Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/sharedra.../oldrads
File: automovetix.sh
#!/bin/bash
[0] Fix | Delete
# this script checks the available disk space and sends in move tickets if needed
[1] Fix | Delete
[2] Fix | Delete
SPACE=$(/bin/df / -B 1073741824 | awk '$NF ~ /^\/$/ {print $2}')
[3] Fix | Delete
AVAIL=$(/bin/df / -B 1073741824 | awk '$NF ~ /^\/$/ {print $4}')
[4] Fix | Delete
[5] Fix | Delete
if [ $SPACE -gt 10000 ]; then
[6] Fix | Delete
THRESHOLD=200
[7] Fix | Delete
else
[8] Fix | Delete
THRESHOLD=$(echo "$SPACE * 3 / 100" | bc)
[9] Fix | Delete
fi
[10] Fix | Delete
[11] Fix | Delete
[12] Fix | Delete
if [ $AVAIL -lt $THRESHOLD ]; then
[13] Fix | Delete
RECLAIM=$(echo "${AVAIL} - ${THRESHOLD}" | bc)
[14] Fix | Delete
echo Generating disk move tickets for largest accounts...
[15] Fix | Delete
/opt/sharedrads/move_generator.py -d -t$RECLAIM
[16] Fix | Delete
fi
[17] Fix | Delete
[18] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function