- Drupal >= 8
- Custom modules inside the directory
modules/custom
and compatibles with your current Drupal's version - Custom themes inside the directory
themes/custom
and compatibles with your current Drupal's version - Custom profiles inside the directory
profiles/custom
and compatibles with your current Drupal's version
If your paths are not %/custom
, please download & adapt script locally.
Need to upgrade from Drupal 8, 9 or 10 to Drupal 9, 10 or 11 with a lot of custom modules, themes or profiles?
Are you afraid of having to modify all your .info.yml
files by hand to add a crummy '^9', '^10' or '^11''?
Can't find any module or tools to do it?
Need a simple and quick trick to avoid this chore?
Here is Drupalazy: the Drupal tool for lazy productive people!
This tool has no limits. You can therefore move from Drupal 8 compatibility to Drupal 42 compatibility.
- Open a terminal
- Navigate to your Drupal installation path
- Execute the following command :
bash <(curl -s https://raw.githubusercontent.com/johnatas-x/drupalazy/main/drupalazy.sh)
- Press enter on the first question
- Press enter on the second question (or update the target version)
If you don't trust a bearded man, you can download the drupalazy.sh
file locally (or clone this project), proofread it, adapt it, give it execution rights and run it.
When you run the script, a prompt appears and asks you for the Drupal installation path. By default, the current directory is pre-entered. You can, if necessary, modify or validate it.
If the path entered is incorrect, an error appears and gives you a second chance! Tips : The Drupal installation path contains the 'core', 'modules' and 'themes' folders.
If the path is correct, the update begins.
The script processes the modules first, then the themes and finally the profiles (in alphabetical order).
This is where the magic happens (finally, this is where Sed replaces ^N
with ^N || ^N+n
).
Three possible cases :
- If the update worked, a nice little green check is added next to the file name.
- If the file is already compatible with the target version, it is skipped and a nice little yellow check is added next to the file name.
- If the update failed, an ugly red cross is added next to the file name.
If you're a summary fanatic, there's one at the end of the script (and in addition, there is even a summary of the files in error)!
Created by Johnatas.
Please share the original open source tool and not a copy.
Feel free to suggest improvements.
Enjoy 🍻
Johnatas