Skip to content

Commit b5d542d

Browse files
committed
[smarcet]
* updated clear ss cache command
1 parent 91e0ee4 commit b5d542d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

clear_ss_cache.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
#!/usr/bin/env bash
2-
sudo rm -R silverstripe-cache/*
3-
sudo chmod 777 silverstripe-cache;
1+
#!/bin/bash
2+
3+
if [ ! -d silverstripe-cache ]; then
4+
echo "creating silverstripe-cache directory";
5+
mkdir -p silverstripe-cache;
6+
fi
7+
8+
sudo rm -Rf silverstripe-cache/*
9+
sudo chmod 777 silverstripe-cache;
10+
sudo chown $USER:www-data silverstripe-cache;

0 commit comments

Comments
 (0)