comparison host/update.sh @ 2122:ce75c0136e28

merge
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Jan 2026 14:00:43 -0700
parents 059afc92310b
children
comparison
equal deleted inserted replaced
2089:454bc5a2ba10 2122:ce75c0136e28
1 #!/bin/bash 1 #!/bin/bash
2
3 set -e 2 set -e
4 3
5 ./stop.sh 4 ./stop.sh
6 5
7 echo Updating hg 6 echo Updating hg
8 hg pull -u 7 hg pull -u
9 8
10 ../scripts/build-luan.sh 9 ./update2.sh
11
12 mkdir -p local
13 mkdir -p logs
14 rm -f logs/*
15 hg identify >logs/changeset.txt
16
17 if [ ! -f local/tiny_account.key ]; then
18 echo "Register letsencrypt (tiny-acme)"
19 openssl genrsa 4096 > local/tiny_account.key
20 fi
21
22 cp startup/nginx/mime.types local/mime.types
23 # id -gn gets the name of the primary group of the current user (staff)
24 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf
25 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf
26
27 echo Starting...
28 ./start.sh