comparison host/update2.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
2 set -e
3
4 ../scripts/build-luan.sh
5
6 mkdir -p local
7 mkdir -p logs
8 rm -f logs/*
9 hg identify >logs/changeset.txt
10
11 if [ ! -f local/tiny_account.key ]; then
12 echo "Register letsencrypt (tiny-acme)"
13 openssl genrsa 4096 >local/tiny_account.key
14 fi
15
16 cp startup/nginx/mime.types local/mime.types
17 # id -gn gets the name of the primary group of the current user (staff)
18 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf
19 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf
20
21 # this is done because the nginx conf uses absolute paths
22 # and this breaks sites when the luan/host directory is moved
23 luan classpath:luan/host/update.luan
24
25 echo Starting...
26 ./start.sh