mirror of
https://github.com/chubin/wttr.in
synced 2024-11-15 08:37:12 +00:00
share/scripts/clean-cache.sh: remove png cache too
This commit is contained in:
parent
e466abcd07
commit
83021d2386
1 changed files with 6 additions and 3 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
CACHEDIR="/wttr.in/cache"
|
||||
|
||||
mv "${CACHEDIR}/wego" "${CACHEDIR}/wego.old"
|
||||
mkdir "${CACHEDIR}/wego"
|
||||
rm -rf "${CACHEDIR}/wego.old"
|
||||
for dir in wego proxy-wwo png
|
||||
do
|
||||
mv "${CACHEDIR}/${dir}" "${CACHEDIR}/${dir}.old"
|
||||
mkdir "${CACHEDIR}/${dir}"
|
||||
rm -rf "${CACHEDIR}/${dir}.old"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue