Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
f701c8e8
Commit
f701c8e8
authored
4 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
fix domain list after install ban services
parent
b9be0883
Branches
Branches containing commit
No related tags found
1 merge request
!20
fix liste des domaine suite à l'installation su services ban
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
checks/list_domains.sh
+1
-1
1 addition, 1 deletion
checks/list_domains.sh
with
1 addition
and
1 deletion
checks/list_domains.sh
+
1
−
1
View file @
f701c8e8
...
@@ -12,5 +12,5 @@ fi
...
@@ -12,5 +12,5 @@ fi
if
id
"dockerweb"
>
/dev/null 2>&1
;
then
if
id
"dockerweb"
>
/dev/null 2>&1
;
then
# List all traefik domain
# List all traefik domain
echo
"===== list of domain ===="
echo
"===== list of domain ===="
docker ps
-qa
| xargs docker inspect |
awk
'/traefik.http.routers.*.rule/{print $2}'
|
sed
-e
's/^"Host(`//'
-e
's/`)",*//'
-e
's/`,`/\n/g'
|
grep
-v
'
!
ClientIP'
|
sort
-u
docker ps
-qa
| xargs docker inspect |
awk
'/traefik.http.routers.*.rule/{print $2}'
|
sed
-e
's/^"Host(`//'
-e
's/`)",*//'
-e
's/`,`/\n/g'
|
grep
-v
'ClientIP'
|
sort
-u
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment