Skip to content
GitLab
Explore
Sign in
Hide whitespace changes
Inline
Side-by-side
utils/stop
deleted
120000 → 0
View file @
10177ad4
systemctl_commands
\ No newline at end of file
utils/stop_before_migration
100644 → 100755
View file @
408b8f91
...
@@ -3,10 +3,9 @@
...
@@ -3,10 +3,9 @@
domain
=
$1
domain
=
$1
ip
=
$2
ip
=
$2
cd
/data/domains/
$domain
cd
/data/domains/
$domain
./
BACKUP
./
scripts/backup
systemctl stop u@
$domain
systemctl stop u@
$domain
systemctl disable u@
$domain
systemctl disable u@
$domain
tar
cvzf /home/core/
${
domain
}
.tgz
.
tar
cvzf /home/core/
${
domain
}
.tgz
.
etcdctl
--peers
172.17.42.1:4001
set
/services/web/
$domain
'{"ip":"'
$ip
'", "port":"443"}'
utils/systemctl_commands
deleted
100644 → 0
View file @
10177ad4
#!/bin/bash
domain
=
`
pwd
|
cut
-d
'/'
-f4
`
systemctl
`
basename
"
$0
"
`
u@
$domain
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
Prev
1
2
3
Next