grs/scripts/clean.sh

7 lines
125 B
Bash

#!/bin/bash -e
for d in /tmp /var/tmp /var/log; do
find ${d} -mindepth 1 -exec rm -rf {} +
done
rm -rf /etc/resolv.conf