add forgejo, delete gitlab (and orphan onlyoffice)
This commit is contained in:
parent
4f62c7ba5b
commit
6743e5e36d
61 changed files with 280 additions and 6384 deletions
|
|
@ -101,25 +101,25 @@ checkTraefik() {
|
|||
return 0
|
||||
}
|
||||
|
||||
checkGitlab() {
|
||||
echo -e "${yellow}Checking GitLab configuration...${noColor}"
|
||||
checkForgejo() {
|
||||
echo -e "${yellow}Checking Forgejo configuration...${noColor}"
|
||||
|
||||
checkService "gitlab" || return 1
|
||||
checkService "forgejo" || return 1
|
||||
|
||||
docker exec gitlab grep -q "external_url" /etc/gitlab/gitlab.rb && \
|
||||
echo -e "${green}GitLab external URL is configured.${noColor}" || \
|
||||
echo -e "${red}GitLab external URL is not configured.${noColor}"
|
||||
docker exec forgejo grep -q "ROOT_URL" /data/gitea/conf/app.ini && \
|
||||
echo -e "${green}Forgejo root URL is configured.${noColor}" || \
|
||||
echo -e "${red}Forgejo root URL is not configured.${noColor}"
|
||||
|
||||
docker exec gitlab grep -q "gitlab_shell_ssh_port" /etc/gitlab/gitlab.rb && \
|
||||
echo -e "${green}GitLab SSH port is configured.${noColor}" || \
|
||||
echo -e "${red}GitLab SSH port is not configured.${noColor}"
|
||||
docker exec forgejo grep -q "SSH_PORT" /data/gitea/conf/app.ini && \
|
||||
echo -e "${green}Forgejo SSH port is configured.${noColor}" || \
|
||||
echo -e "${red}Forgejo SSH port is not configured.${noColor}"
|
||||
|
||||
echo -e "${yellow}Checking GitLab SSH connection...${noColor}"
|
||||
if ssh -T git@gitlab.${DOMAIN} -p 2424 -o StrictHostKeyChecking=no -o BatchMode=yes &>/dev/null; then
|
||||
echo -e "${green}GitLab SSH connection successful.${noColor}"
|
||||
echo -e "${yellow}Checking Forgejo SSH connection...${noColor}"
|
||||
if ssh -T git@git.${DOMAIN} -p 2424 -o StrictHostKeyChecking=no -o BatchMode=yes &>/dev/null; then
|
||||
echo -e "${green}Forgejo SSH connection successful.${noColor}"
|
||||
else
|
||||
echo -e "${red}GitLab SSH connection failed. This is expected if you haven't set up SSH keys yet.${noColor}"
|
||||
echo -e "${yellow}Try: ssh -vT git@gitlab.${DOMAIN} -p 2424${noColor}"
|
||||
echo -e "${red}Forgejo SSH connection failed. This is expected if you haven't set up SSH keys yet.${noColor}"
|
||||
echo -e "${yellow}Try: ssh -vT git@git.${DOMAIN} -p 2424${noColor}"
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
@ -179,7 +179,7 @@ checkNextcloud() {
|
|||
checkAllServices() {
|
||||
echo -e "${yellow}Checking all services...${noColor}"
|
||||
|
||||
local services=("traefik" "gitlab" "mariadb" "postgres" "adminer" "nextcloud" "onlyoffice" "openproject" "hedgedoc" "drupal")
|
||||
local services=("traefik" "forgejo" "mariadb" "postgres" "adminer" "nextcloud" "onlyoffice" "openproject" "hedgedoc" "drupal")
|
||||
|
||||
for service in "${services[@]}"; do
|
||||
checkService "$service"
|
||||
|
|
@ -498,7 +498,7 @@ loadMailcowHostname
|
|||
printSection "Core Service Diagnostics"
|
||||
checkTraefik
|
||||
echo ""
|
||||
checkGitlab
|
||||
checkForgejo
|
||||
echo ""
|
||||
checkDatabases
|
||||
echo ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue