annotate 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 | 
  | 
 | rev | 
   line source | 
  
| 
0
 | 
     1 #!/bin/bash -e
 | 
| 
 | 
     2 
 | 
| 
 | 
     3 ROOTPWD=$(pwd);
 | 
| 
 | 
     4 hgservepid=${ROOTPWD}"/hgserver.pid";
 | 
| 
 | 
     5 logsdir=${ROOTPWD}"/logs";
 | 
| 
 | 
     6 templatesdir=${ROOTPWD}"/templates";
 | 
| 
 | 
     7 hgaccesslog=${logsdir}"/hg_access.log";
 | 
| 
 | 
     8 servelog=${logsdir}"/serve.log";
 | 
| 
 | 
     9 nginxonfig=${ROOTPWD}"/nginx.conf";
 | 
| 
 | 
    10 confdir=${ROOTPWD}"/config";
 | 
| 
 | 
    11 webconfig=${confdir}"/web.config";
 | 
| 
 | 
    12 backuphome=${ROOTPWD}"/backup";
 |