Commit 3b9ca87b authored by Rosemary Mann's avatar Rosemary Mann

Add documentation of fix directories script

parent 4e60d604
......@@ -45,6 +45,40 @@ Run `composer create-project drutopia/drutopia_template:dev-master --no-interact
Replace DIRECTORY of course with whatever you want to the directory to be called.
This will get you the release versions of Drutopia features so you should run the following script to replace those with git repositories before installing.
```
# Name this file fix_directories.sh and place it in the root directory of your
# Drutopia install (parallel to the vendor and web directories).
# Adjust file permissions so the file is executable.
# From a terminal in the directory you placed the file, run:
# ./fix_directories.sh
cd web/modules/contrib/
echo "Fixing Drutopia modules"
for dir in "drutopia_"*
do
echo "Fixing $dir"
rm -fr $dir
git clone "git@gitlab.com:drutopia/$dir.git"
done
cd ../../profiles/contrib/
echo "Fixing drutopia install profile"
rm -fr drutopia
git clone git@gitlab.com:drutopia/drutopia.git
cd ../../themes/contrib/
echo "Fixing octavia theme"
rm -fr octavia
git clone git@gitlab.com:drutopia/octavia.git
cd ../../../
```
To use the script:
* Create a new file, `fix_directories.sh`, and put it in the root directory of your site.
* Adjust file permissions on `fix_directories.sh` as needed to add execute access.
* From the directory containing `fix_directories.sh`, run the following at the command line: `./fix_directories.sh`
* Visit your site and follow the Drupal installation instructions.
* Log into your new site and install the modules needed for development. These include:
* All Drutopia feature modules (which are listed on the modules page under the heading "Drutopia").
......@@ -185,4 +219,4 @@ To use the script:
* Create a new file, `update-repositories.sh`, and put it in the parent directory of the directory of your Drutopia feature-module repositories.
* Adjust file permissions on `update-repositories.sh` as needed to add execute access.
* From the directory containing `update-repositories.sh`, run the following at the command line: `./update-repositories.sh`
\ No newline at end of file
* From the directory containing `update-repositories.sh`, run the following at the command line: `./update-repositories.sh`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment