From dfa28ac6949e9440e11a34ae2e4e48bab18d1235 Mon Sep 17 00:00:00 2001 From: Toby Batch Date: Mon, 24 Aug 2015 10:09:32 +0100 Subject: [PATCH] Added a www-data sudo to shazam --- shazam | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/shazam b/shazam index 7da2c14..b3ef473 100755 --- a/shazam +++ b/shazam @@ -31,14 +31,16 @@ if [ ! -d "$DR" ]; then exit 3 fi -SITESDIR="$DR/sites" +sudo su - www-data -s /bin/bash -c "drush -r $DR cc all" -PS3="Choose site to clear:" -select name in $SITESDIR/* -do - break -done +# SITESDIR="$DR/sites" -if [ ! -z "$name" ]; then - /usr/local/drush/drush -r $DR -l http://`basename $name` cc all -fi +# PS3="Choose site to clear:" +# select name in $SITESDIR/* +# do + # break +# done + +# if [ ! -z "$name" ]; then + # sudo su - www-data -s /bin/bash -c "drush -r $DR -l http://`basename $name` cc all" +# fi