view moveLogs.sh @ 20:8b4481769cc6

fix move logs
author Vadim Filimonov <fffilimonov@yandex.ru>
date Mon, 05 Aug 2024 11:32:22 +0300
parents 64eee582fec1
children
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 -f $reposLogsDir/$filename $reposLogsDir/${filename}".0";
done;