Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 556 Bytes

File metadata and controls

17 lines (11 loc) · 556 Bytes

setup_clean_mail_dir.sh Script Description

This script sets up a daily cron job to clean the /var/mail directory. It creates a cleaning script in /opt/scripts and configures a cron job to run this script every day at midnight.

How to Download and Run the Script

  1. Using curl:
curl -s https://raw.githubusercontent.com/egubaidullin/scripts/main/setup_clean_mail_dir.sh | sudo bash
  1. Using wget:
wget -qO- https://raw.githubusercontent.com/egubaidullin/scripts/main/setup_clean_mail_dir.sh | sudo bash