diff host/update.sh @ 2062:5ede71739221

merge branches
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 15 Nov 2025 18:07:51 -0700
parents a4435e2e3417
children
line wrap: on
line diff
--- a/host/update.sh	Sun Nov 09 11:32:18 2025 -0700
+++ b/host/update.sh	Sat Nov 15 18:07:51 2025 -0700
@@ -14,15 +14,15 @@
 rm -f logs/*
 hg identify >logs/changeset.txt
 
-if [ ! -f local/leKey.txt ]; then
-  echo Register letsencrypt
-  ./acme.sh --set-default-ca --server letsencrypt
-  ./acme.sh --register-account --server letsencrypt --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' >local/leKey.txt
+if [ ! -f local/tiny_account.key ]; then
+  echo "Register letsencrypt (tiny-acme)"
+  openssl genrsa 4096 > local/tiny_account.key
 fi
 
 cp startup/nginx/mime.types local/mime.types
+# id -gn gets the name of the primary group of the current user (staff)
 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
+luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf
 
 echo Starting...
 ./start.sh