Skip to content
Snippets Groups Projects
Commit ce302f07 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

WIP

parent 656cba37
No related branches found
No related tags found
No related merge requests found
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
#!/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
#!/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"}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment