Mercurial Hosting > luan
view host/update.sh @ 1699:e6750146faa1
no restart on backup
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Tue, 28 Jun 2022 16:13:37 +0300 |
parents | 0344a535b1db |
children |
line wrap: on
line source
#!/bin/bash set -e ./stop.sh echo Updating hg hg pull -u ../scripts/build-luan.sh mkdir -p local mkdir -p logs rm -f logs/* hg identify >logs/changeset.txt if [ ! -f local/leKey.txt ]; then echo Register letsencrypt ./acme.sh --register-account --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' > local/leKey.txt; fi; cp startup/nginx/mime.types local/mime.types; luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) > local/nginx.conf luan startup/nginx/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) > local/nginx.default.conf echo Starting... ./start.sh