comparison host/update2.sh @ 2116:059afc92310b ssltesting

split update.sh
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 05 Jan 2026 14:02:55 -0700
parents host/update.sh@3112b06ab447
children
comparison
equal deleted inserted replaced
2115:5b434c8a27bd 2116:059afc92310b
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