Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

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
Show changes
systemctl_commands
\ No newline at end of file
systemctl_commands
\ No newline at end of file
systemctl_commands
\ No newline at end of file
systemctl_commands
\ No newline at end of file
......@@ -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"}'
#!/bin/bash
domain=`pwd | cut -d'/' -f4`
systemctl `basename "$0"` u@$domain
#!/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