compose-website/utils/migrate

18 lines
253 B
Text
Raw Normal View History

2016-01-04 23:51:29 +00:00
#!/bin/bash -eux
2016-09-06 06:28:14 +00:00
#!/bin/bash -eux
2016-01-04 23:51:29 +00:00
2016-09-06 06:28:14 +00:00
hash=$1
2016-01-04 23:51:29 +00:00
domain=$2
2016-09-06 06:28:14 +00:00
cd /data/domains/
wget https://wader.indie.host/migrate/$hash
unzip $hash
rm $hash
cd $domain
2016-01-04 23:51:29 +00:00
2016-09-06 06:28:14 +00:00
cp TLS/$domain.pem /system/haproxy/haproxy/certs
2016-01-04 23:51:29 +00:00
systemctl start u@$domain
systemctl enable u@$domain