glacier-old/glacier-cache-clear.sh

14 lines
308 B
Bash
Raw Normal View History

2022-03-28 17:11:21 -04:00
#!/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..."
2022-03-29 12:19:26 -04:00
cd /var/cache/glacier && rm *.tar.gz
2022-03-28 17:11:21 -04:00
echo "[ i ] Cache was cleared."