Update cleanup.sh
This commit is contained in:
parent
0e009e1bb9
commit
92e1143bec
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# AUTHOR: Josh North
|
# AUTHOR: Josh North
|
||||||
# EMAIL: josh.north@point808.com
|
# EMAIL: josh.north@point808.com
|
||||||
# BRIEF: Quick and dirty script to clear disk space (log files, apt cache, etc).
|
# BRIEF: Quick and dirty script to clear disk space (log files, apt cache, etc).
|
||||||
@ -7,9 +6,7 @@
|
|||||||
# USAGE: Put this file in /usr/local/bin/cleanup.sh or wherever you prefer is ok.
|
# USAGE: Put this file in /usr/local/bin/cleanup.sh or wherever you prefer is ok.
|
||||||
# Make sure to chmod +x and make it executable. Run from command line at will,
|
# Make sure to chmod +x and make it executable. Run from command line at will,
|
||||||
# or call from a pre-backup script.
|
# or call from a pre-backup script.
|
||||||
|
|
||||||
# SETTINGS:
|
# SETTINGS:
|
||||||
|
|
||||||
# -------------------- NOTHING TO CHANGE BELOW THIS LINE --------------------
|
# -------------------- NOTHING TO CHANGE BELOW THIS LINE --------------------
|
||||||
# Delete old config files
|
# Delete old config files
|
||||||
apt-get purge $(dpkg -l|grep "^rc"|awk '{print $2}')
|
apt-get purge $(dpkg -l|grep "^rc"|awk '{print $2}')
|
||||||
|
Loading…
Reference in New Issue
Block a user