Mercurial Hosting > hghosting
comparison moveLogs.sh @ 18:64eee582fec1
add move logs while restart
| author | Vadim Filimonov <fffilimonov@yandex.ru> |
|---|---|
| date | Wed, 19 Jun 2024 11:45:10 +0300 |
| parents | |
| children | 8b4481769cc6 |
comparison
equal
deleted
inserted
replaced
| 17:3e8c7d089e30 | 18:64eee582fec1 |
|---|---|
| 1 #!/bin/bash -e | |
| 2 | |
| 3 . common.sh; | |
| 4 | |
| 5 mv $hgaccesslog ${hgaccesslog}".0"; | |
| 6 | |
| 7 reposLogsDir=${ROOTPWD}"/logs/repos"; | |
| 8 ls $reposLogsDir | while read filename; do | |
| 9 mv $reposLogsDir/$filename $reposLogsDir/${filename}".0"; | |
| 10 done; |
