Removed Debugging
* Removed Debugging * Updated Documentation * Remove Joomla README.txt with finalize script
This commit is contained in:
@@ -12,6 +12,7 @@ PROJECTNAME=$(basename "$(pwd)")
|
||||
rm -f html/web.config.txt
|
||||
rm -f html/htaccess.txt
|
||||
rm -f html/LICENSE.txt
|
||||
rm -f html/README.txt
|
||||
|
||||
# Set configuration.php
|
||||
docker-compose exec -u www-data joomla php cli/joomla.php config:set error_reporting=none
|
||||
|
||||
@@ -4,14 +4,6 @@ PROJECTNAME=$(basename "$(pwd)")
|
||||
|
||||
echo -e "\n\e[32mSetup Git Remotely\e[0m\n";
|
||||
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
# Debugging
|
||||
echo "DEBUGGING"
|
||||
echo "GITEA API url: $GITEA_API_URL"
|
||||
echo "Access token: $ACCESS_TOKEN"
|
||||
echo "Project name: $PROJECTNAME";
|
||||
fi
|
||||
|
||||
DESC="Repo auto created by Joomla remote git script creator for $PROJECTNAME"
|
||||
|
||||
# Create the repository using Gitea API
|
||||
@@ -21,11 +13,6 @@ RESPONSE=$(curl -s -X POST \
|
||||
-d "{\"name\":\"$PROJECTNAME\",\"private\": true,\"description\": \"$DESC\"}" \
|
||||
$GITEA_API_URL/user/repos)
|
||||
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
echo "The RESPONSE:"
|
||||
echo "$RESPONSE"
|
||||
fi
|
||||
|
||||
if [ -z "$RESPONSE" ] || [ "$(echo "$RESPONSE" | jq -r '.id')" = "null" ]; then
|
||||
echo "Error: Failed to create $PROJECTNAME repository."
|
||||
exit 1
|
||||
@@ -37,11 +24,6 @@ if [ "$SSH_URL" = "null" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
echo "SSH URL:"
|
||||
echo "$SSH_URL"
|
||||
fi
|
||||
|
||||
# Add new remote repository
|
||||
git remote add origin "$SSH_URL"
|
||||
git remote -v
|
||||
|
||||
7
bin/install_extensions.sh
Normal file
7
bin/install_extensions.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Sitemap
|
||||
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
|
||||
|
||||
# Comments
|
||||
docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://cdn.akeeba.com/updates/pkgengage.xml
|
||||
Reference in New Issue
Block a user