cleaned up install process

This commit is contained in:
Nick Yeoman 2023-12-19 13:17:56 -08:00
parent 471395fba7
commit ce270e5168
4 changed files with 8 additions and 25 deletions

View File

@ -8,17 +8,17 @@ fi
# Template # Template
# [GitHub](https://github.com/templaza/astroid-framework) # [GitHub](https://github.com/templaza/astroid-framework)
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://github.com/templaza/astroid-framework/releases/download/v2.6.5/astroid-package-v2.6.5.Framework-Template.zip docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=hhttps://github.com/templaza/astroid-framework/releases/download/v3.0.7/astroid-framework-3.0.7.zip
# Sitemap # Sitemap
# [GitHub](https://github.com/joomlashack/OSMap) # [GitHub](https://github.com/joomlashack/OSMap)
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://deploy.ostraining.com/client/download/free/latest-stable/com_osmap docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://github.com/joomlashack/OSMap/releases/download/v5.0.15/com_osmap_free_5.0.15.zip
# Comments # Comments
# [Download page](https://www.akeeba.com/download/engage/3-2-5.html) # [Download page](https://www.akeeba.com/download/engage/3-2-5.html)
# [Github](https://github.com/akeeba/engage) # [Github](https://github.com/akeeba/engage)
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://www.akeeba.com/download/engage/3-2-5/pkg-engage-3-2-5-zip.zip docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://www.akeeba.com/download/engage/3-3-3/pkg-engage-3-3-3-zip.zip
# Contact Form # Contact Form
# [GitHub](https://github.com/mavrosxristoforos/rapid-contact) # [GitHub](https://github.com/mavrosxristoforos/rapid-contact)
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://github.com/mavrosxristoforos/rapid-contact/releases/download/1.4.27/mod_rapid_contact.zip docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://github.com/mavrosxristoforos/rapid-contact/releases/download/1.4.37/mod_rapid_contact.zip

View File

@ -84,5 +84,8 @@ rm -f html/README.txt
rm -rf bin/inc_new_project rm -rf bin/inc_new_project
rm -rf bin/joomla_new_project.sh rm -rf bin/joomla_new_project.sh
rm -rf bin/joomla_install.sh rm -rf bin/joomla_install.sh
rm -rf bin/install_extensions.sh
rm $0
echo "Now check the results and commit them to Git" echo "Now check the results and commit them to Git"

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# Runs the joomla cli through docker
PROJECTNAME=$(basename "$(pwd)") PROJECTNAME=$(basename "$(pwd)")

View File

@ -1,21 +0,0 @@
#!/bin/bash
# Function to generate a random password using passgen
generate_password() {
pwgen -cnsB1v 12
}
# Get the name of the current directory (project name)
PROJECT_NAME=$(basename "$(pwd)")
MYSQL_USER="${PROJECT_NAME}_joomla_user"
MYSQL_DATABASE="${PROJECT_NAME}_joomla_db"
echo "Generated passwords:"
# Generate passwords for specific variables and print them to CLI
echo "MYSQL_ROOT_PASSWORD=$(generate_password)"
echo "MYSQL_USER=$MYSQL_USER"
echo "MYSQL_DATABASE=$MYSQL_DATABASE"
echo "MYSQL_PASSWORD=$(generate_password)"
echo "MYSQL_DATABASE=$MYSQL_DATABASE"
echo "JOOMLA_PASSWORD=$(generate_password)"