Skip to content
stop_before_migration 242 B
Newer Older
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed
#!/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"}'