Skip to content
migrate 253 B
Newer Older
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed
#!/bin/bash -eux
Pierre Ozoux's avatar
Pierre Ozoux committed
#!/bin/bash -eux
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed

Pierre Ozoux's avatar
Pierre Ozoux committed
hash=$1
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed
domain=$2

Pierre Ozoux's avatar
Pierre Ozoux committed
cd /data/domains/
wget https://wader.indie.host/migrate/$hash
unzip $hash
rm $hash

cd $domain
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed

Pierre Ozoux's avatar
Pierre Ozoux committed
cp TLS/$domain.pem /system/haproxy/haproxy/certs
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed

systemctl start u@$domain
systemctl enable u@$domain