-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be specific with directory and file permissions when mapping /srv/www
Rather than manually chmod specific directories to have group write access, map the /srv/www directory initially with 775 on directories and 664 on files. This allows for non sudo access to a bunch of stuff. Reverts previous commits adding chmod statements.
- Loading branch information
1 parent
c9c7bf3
commit 9b86905
Showing
2 changed files
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,7 +223,6 @@ then | |
mv wordpress wordpress-default | ||
rm latest.tar.gz | ||
cd /srv/www/wordpress-default | ||
chmod -R g+w /srv/www/wordpress-default | ||
printf "Configuring WordPress...\n" | ||
wp core config --dbname=wordpress_default --dbuser=wp --dbpass=wp --quiet | ||
wp core install --url=local.wordpress.dev --quiet --title="Local WordPress Dev" --admin_name=admin --admin_email="[email protected]" --admin_password="password" | ||
|
@@ -240,14 +239,12 @@ then | |
printf "Checking out WordPress trunk....http://core.svn.wordpress.org/trunk\n" | ||
svn checkout http://core.svn.wordpress.org/trunk/ /srv/www/wordpress-trunk | ||
cd /srv/www/wordpress-trunk | ||
chmod -R g+w /srv/www/wordpress-trunk | ||
printf "Configuring WordPress trunk...\n" | ||
wp core config --dbname=wordpress_trunk --dbuser=wp --dbpass=wp --quiet | ||
wp core install --url=local.wordpress-trunk.dev --quiet --title="Local WordPress Trunk Dev" --admin_name=admin --admin_email="[email protected]" --admin_password="password" | ||
else | ||
printf "Updating WordPress trunk...\n" | ||
cd /srv/www/wordpress-trunk | ||
chmod -R g+w /srv/www/wordpress-trunk | ||
svn up --ignore-externals | ||
fi | ||
fi | ||
|
@@ -261,12 +258,10 @@ then | |
# Must be in a WP directory to run wp | ||
cd /srv/www/wordpress-trunk | ||
wp core init-tests /srv/www/wordpress-unit-tests --dbname=wordpress_unit_tests --dbuser=wp --dbpass=wp | ||
chmod -R g+w /srv/www/wordpress-unit-tests | ||
else | ||
printf "Updating WordPress unit tests...\n" | ||
cd /srv/www/wordpress-unit-tests | ||
svn up --ignore-externals | ||
chmod -R g+w /srv/www/wordpress-unit-tests | ||
fi | ||
fi | ||
|
||
|