1 Bash Finalize
Nick Yeoman edited this page 2023-06-07 14:06:43 -07:00

finalize.sh Documentation

The finalize.sh script is designed to perform finalization tasks for a Joomla project. It sets various Joomla configuration options and removes unnecessary files.

Usage

To use the finalize.sh script, follow these steps:

  • Ensure you have root privileges to run the script.
  • Make sure the .env file exists in the same directory as the script.
  • Execute the script: ./finalize.sh
  • Review the results and commit the changes to Git if necessary.

Configuration

The script reads configuration options from the .env file. Ensure that the following variables are defined:

# Joomla Configuration Defaults
JCONFIG_REPORTING=
JCONFIG_TIMEZONE=
JCONFIG_SEF=
# SMTP ENV CHECK
SMTP_MAILER=
SMTP_USER=
SMTP_PASS=
SMTP_HOST=
SMTP_SECURITY=
SMTP_PORT=

Script Flow

The finalize.sh script follows the following flow:

  • Checks if the script is run as root.
  • Verifies the existence of the .env file.
  • Loads the environment variables from the .env file.
  • Sets default values for Joomla configuration options if they are not specified in the .env file.
  • Sets Joomla configuration options using the docker-compose commands.
  • Removes unnecessary Joomla files.
  • Removes install helper scripts.
  • Displays a message to review the results and commit the changes to Git.

Important Notes

  • Ensure that the docker-compose command is properly configured and available in the environment.
  • Review the script and customize it according to your specific requirements before running it.
  • Always make backups of your files and database before running any script that modifies your Joomla installation.