You're a DevOps engineer at esc bash. The app server keeps filling up its disk with old log files, and nobody remembers to clear them by hand. Your job is to set up a cleanup that runs on a schedule and leaves a record of each run, so this stops being a manual chore.
Run this first. It prepares the machine for the task:
curl -fsSL https://raw.githubusercontent.com/Esc-Bash/project-init-scripts/main/linux/project-1/init.sh | bash
This creates /var/log/escbash-app/ with one live log, app.log, and
a handful of old rotated logs whose names end in .old.
/root/bin/cleanup.sh that deletes the old
rotated logs (the files ending in .old) inside
/var/log/escbash-app/, and prints one line each time it runs. The
live app.log must be left alone. Make the script executable./var/log/escbash-app/cleanup.log./var/log/escbash-app/cleanup.log exists.When the checks pass, press Submit.
Start the lab on the right to run checks.