Mercurial Hosting > hghosting
view common.sh @ 26:d3b72a8bfbe9 default tip
Add rate limiting, change moveLogs.sh to only operate on non-empty files
| author | Violet7 | 
|---|---|
| date | Sat, 01 Nov 2025 22:12:56 -0700 | 
| parents | dfc36e7ed22c | 
| children | 
line wrap: on
 line source
#!/bin/bash -e ROOTPWD=$(pwd); hgservepid=${ROOTPWD}"/hgserver.pid"; logsdir=${ROOTPWD}"/logs"; templatesdir=${ROOTPWD}"/templates"; hgaccesslog=${logsdir}"/hg_access.log"; servelog=${logsdir}"/serve.log"; nginxonfig=${ROOTPWD}"/nginx.conf"; confdir=${ROOTPWD}"/config"; webconfig=${confdir}"/web.config"; backuphome=${ROOTPWD}"/backup";
