annotate moveLogs.sh @ 21:b14073ab9d07

update luan
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 14 Sep 2024 22:17:26 -0600
parents 8b4481769cc6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
20
8b4481769cc6 fix move logs
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 18
diff changeset
9 mv -f $reposLogsDir/$filename $reposLogsDir/${filename}".0";
18
64eee582fec1 add move logs while restart
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 done;