Mercurial Hosting > hghosting
annotate moveLogs.sh @ 19:a90e510ccc4f
fix restart/move logs
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Mon, 05 Aug 2024 11:29:06 +0300 |
parents | 64eee582fec1 |
children | 8b4481769cc6 |
rev | line source |
---|---|
18
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
1 #!/bin/bash -e |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
2 |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
3 . common.sh; |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
4 |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
5 mv $hgaccesslog ${hgaccesslog}".0"; |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
6 |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
7 reposLogsDir=${ROOTPWD}"/logs/repos"; |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
8 ls $reposLogsDir | while read filename; do |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
9 mv $reposLogsDir/$filename $reposLogsDir/${filename}".0"; |
64eee582fec1
add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff
changeset
|
10 done; |