Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
ecobytes
compose.libre.sh
Commits
ce302f07
Commit
ce302f07
authored
9 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
656cba37
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/useful_one_liners
+5
-0
5 additions, 0 deletions
scripts/useful_one_liners
utils/import
+19
-0
19 additions, 0 deletions
utils/import
utils/stop_before_migration
+11
-0
11 additions, 0 deletions
utils/stop_before_migration
with
35 additions
and
0 deletions
scripts/useful_one_liners
0 → 100644
+
5
−
0
View file @
ce302f07
for cert in `ls /data/runtime/haproxy/approved-certs/`;do echo $cert;openssl x509 -enddate -noout -in $cert | cut -d'=' -f2;done
cp /data/indiehosters/unit-files/* /etc/systemd/system && systemctl daemon-reload
systemctl list-units | grep failed
This diff is collapsed.
Click to expand it.
utils/import
0 → 100755
+
19
−
0
View file @
ce302f07
#!/bin/bash -eux
source
/etc/environment
from
=
$1
domain
=
$2
ssh core@
$from
sudo
/data/indiehosters/utils/stop_before_migration.sh
$domain
$IP
mkdir
/data/domains/
$domain
scp core@
${
from
}
:
${
domain
}
.tgz /data/domains/
$domain
cd
/data/domains/
$domain
tar
xvzf
${
domain
}
.tgz
rm
${
domain
}
.tgz
/data/indiehosters/utils/append_crt_list.sh
$domain
systemctl start u@
$domain
systemctl
enable
u@
$domain
This diff is collapsed.
Click to expand it.
utils/stop_before_migration
0 → 100644
+
11
−
0
View file @
ce302f07
#!/bin/bash -eux
domain
=
`
pwd
|
cut
-d
/
-f
4
`
./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":"5.9.101.242", "port":"80"}'
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