Create glacier-cache-clear.sh
This commit is contained in:
13
glacier-cache-clear.sh
Normal file
13
glacier-cache-clear.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# glacier-cache-clear
|
||||||
|
# Script used to clear Glacier's cache
|
||||||
|
|
||||||
|
# Require the script to be run as root
|
||||||
|
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||||
|
echo "[ X ] Please run Glacier as root."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[ i ] Clearing cache..."
|
||||||
|
rm -rf /var/cache/glacier
|
||||||
|
echo "[ i ] Cache was cleared."
|
||||||
Reference in New Issue
Block a user