Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
libre.sh
compose.libre.sh
Compare revisions
10177ad4b8d92196a130a5dddd943c049bde911c to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
libre.sh/compose.libre.sh
Select target project
No results found
master
Select Git revision
Swap
Target
timothee/compose.libre.sh
Select target project
lupa/compose.libre.sh
libre.sh/compose.libre.sh
ecobytes/compose.libre.sh
jordan.mitchell/compose.libre.sh
timothee/compose.libre.sh
5 results
10177ad4b8d92196a130a5dddd943c049bde911c
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
utils/stop
+0
-1
0 additions, 1 deletion
utils/stop
utils/stop_before_migration
+1
-2
1 addition, 2 deletions
utils/stop_before_migration
utils/systemctl_commands
+0
-4
0 additions, 4 deletions
utils/systemctl_commands
utils/test-domain.sh
+10
-0
10 additions, 0 deletions
utils/test-domain.sh
with
11 additions
and
7 deletions
utils/stop
deleted
120000 → 0
View file @
10177ad4
systemctl_commands
\ No newline at end of file
This diff is collapsed.
Click to expand it.
utils/stop_before_migration
100644 → 100755
View file @
408b8f91
...
...
@@ -3,10 +3,9 @@
domain
=
$1
ip
=
$2
cd
/data/domains/
$domain
./
BACKUP
./
scripts/backup
systemctl stop u@
$domain
systemctl disable u@
$domain
tar
cvzf /home/core/
${
domain
}
.tgz
.
etcdctl
--peers
172.17.42.1:4001
set
/services/web/
$domain
'{"ip":"'
$ip
'", "port":"443"}'
This diff is collapsed.
Click to expand it.
utils/systemctl_commands
deleted
100644 → 0
View file @
10177ad4
#!/bin/bash
domain
=
`
pwd
|
cut
-d
'/'
-f4
`
systemctl
`
basename
"
$0
"
`
u@
$domain
This diff is collapsed.
Click to expand it.
utils/test-domain.sh
0 → 100644
View file @
408b8f91
#!/bin/bash
cd
/data/domains
my_ip
=
`
curl http://ipv4.icanhazip.com/
`
echo
"My IP is
$my_ip
"
for
domain
in
`
ls
.
`
;
do
domain_ip
=
`
host
${
domain
}
|
awk
'/has address/ { print $4 }'
`
if
[[
"
${
domain_ip
}
"
!=
"
${
my_ip
}
"
]]
;
then
echo
"
$domain
has this IP:
$domain_ip
"
fi
done
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next