view 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
line wrap: on
line source

#!/bin/bash -e

. common.sh;

mv $hgaccesslog ${hgaccesslog}".0";

reposLogsDir=${ROOTPWD}"/logs/repos";
ls $reposLogsDir | while read filename; do
  mv $reposLogsDir/$filename $reposLogsDir/${filename}".0";
done;