Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Added a www-data sudo to shazam
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybatch committed Aug 24, 2015
1 parent 6e44b8f commit dfa28ac
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions shazam
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dfa28ac

Please sign in to comment.