concrete5 Core override checker is the very simple interactive tool to check if your concrete5 core directory has some overrides from concrete5 original package.
You need to upload this shell script to the server and run it directory from server (Or download the file to run locally)
Usually, you are NOT supposed to modify anything underneath of /concrete
directory by design.
However, sometime you had to, or somebody else did.
This becomes critical at the time of the upgrade, especially for the porject that you took over from some someone else.
People forget things.
Therefore, I made this shell script to check to make sure if anybody else (including you) didn't override the concrete5 core, so that you can proceed the upgrade.
- It copies the concrete directory from web server to working directory
- It downloads the concrete5 original package from concrete5.org server & extract the zip file.
- Run a DIFF command.
- Check if the diff file size is zero or not.
- If it's not zero, it gives you warning and save the diff file
- Deletes the working files.
- You need to have the basic understanding of the server.
- The server needs to be able to run shell scrpt, and have necessary tools (this shell script uses very basic tools)
- Open
c5_core_override.chech.sh
file. Make sure you have execution rights. - Check the file permission of concrete5 folder.
- Change the CONCRETE5_VERSION & URL_CONCRETE5 to your preferred version and download link. You can get the download URL from concrete5.org Download page
- Upload the shell script to the server
- Get the working directory URL. I recommend to use under home directory. Make some empty directory, then use
pwd
command to get the path. - Get the concrete5 directory. Go to the concrete5 root directory and run
pwd
command. - No slash at the end
$ cd [shell script location]
$ sh c5_core_override_check.sh [path to working directory] [path to concrete5 directory]
$ cd
$ mkdir c5_check
$ sh c5_core_override_check.sh "/home/ec2-user/c5_check" "/var/www/vhosts/concrete5.co.jp/"
If there is core override, it will generate concrete5_YYYYMMDDHHMMSS.diff file under working directory.
Download & open the diff file and check the diff file.
Date | Version | Comment |
---|---|---|
2020/8/25 | 0.9.0 | Initial Version |
The MIT License (MIT)