Create glacier-cache-clear.sh

This commit is contained in:
everest 2022-03-28 21:11:21 +00:00 committed by GitHub
parent 0d6b9fcbc0
commit b40e3e55cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
glacier-cache-clear.sh Normal file
View 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."