This repository has been archived on 2024-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
joomla/bin/new_project.sh

28 lines
524 B
Bash
Raw Normal View History

2023-05-20 02:01:52 -07:00
#!/bin/bash
PROJECTNAME=$(basename "$(pwd)")
SETGITEA=true
2023-05-20 02:01:52 -07:00
# Verify the .env file exists
if [ ! -f ".env" ]; then
echo "Error: The .env file does not exist."
exit 1
fi
# Load environment variables from .env file
set -o allexport
source .env
set +o allexport
# Run Git setup
2023-05-20 10:29:45 -07:00
bash bin/inc_new_project/git_setup.sh
2023-05-20 02:01:52 -07:00
2023-05-20 13:37:56 -07:00
if [ "$GITEA_API_URL" = "REPLACEME" ]; then
SETGITEA=false
fi
# Run remote Git setup
if [ "$SETGITEA" = "true" ]; then
2023-05-20 10:29:45 -07:00
bash bin/inc_new_project/remote_git_setup.sh
2023-05-20 02:01:52 -07:00
fi
2023-05-20 13:37:56 -07:00
echo -e "\e[32mAll Done\e[0m";