Permalink
Browse files

Tested on Ubunutu and tried to auto guess the owner of apache

  • Loading branch information...
1 parent 9e301c0 commit b501b7a34246b0db3024d850d748203ac5ab6a03 @davglass committed Aug 15, 2009
Showing with 9 additions and 1 deletion.
  1. +9 −1 install.sh
View
@@ -88,8 +88,16 @@ echo "--------------------------------------------------------------------------
echo "Fetching complete.."
echo ""
echo "Temporary directories need admin (sudo) privileges, asking.."
-sudo chown -R www:www /tmp/yuidev
+www="www"
+wwwtest=`cat /etc/passwd | grep www-data`
+if [ "$wwwtest" != ""]; then
+ www="www-data"
+fi
+sudo chown -R $www:$www /tmp/yuidev
sudo chmod -R +w /tmp/yuidev
+echo " * If the above command errors, then I couldn't guess who owns apache."
+echo " * Please change the owner (recursively) for the /tmp/yuidev folder."
+echo ""
echo "Installation complete."
echo ""
echo "------------------------------------------------------------------------------------------"

0 comments on commit b501b7a

Please sign in to comment.