Skip to content
GitLab
Explore
Sign in
Hide whitespace changes
Inline
Side-by-side
utils/stop_before_migration
0 → 100755
View file @
408b8f91
#!/bin/bash -eux
domain
=
$1
ip
=
$2
cd
/data/domains/
$domain
./scripts/backup
systemctl stop u@
$domain
systemctl disable u@
$domain
tar
cvzf /home/core/
${
domain
}
.tgz
.
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
4
Next