-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/55-dashboard
- Loading branch information
Showing
4 changed files
with
8 additions
and
14 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
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 |
---|---|---|
@@ -1,21 +1,12 @@ | ||
#!/bin/bash | ||
|
||
DIR=${APP_ROOT:=/var/www}/sites/${JOOMLA_SITE} | ||
if [[ ! -d $DIR ]]; | ||
if [[ ! -d $DIR ]] && [[ ! -z "${JOOMLA_SITE}" ]]; | ||
then | ||
echo "Installing Joomla..." | ||
|
||
echo "* Downloading Joomla" | ||
joomla site:download ${JOOMLA_SITE} --release=${JOOMLA_VERSION} | ||
joomla site:create ${JOOMLA_SITE} --release=${JOOMLA_VERSION} | ||
|
||
echo "* Creating the Joomla database" | ||
joomla database:install ${JOOMLA_SITE} --drop | ||
|
||
echo "* Configuring Joomla" | ||
joomla site:configure ${JOOMLA_SITE} --overwrite | ||
|
||
echo "* Creating vhost" | ||
joomla vhost:create ${JOOMLA_SITE} | ||
else | ||
echo "Installing Joomla... skipped" | ||
fi |
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