From: keybuk Date: Wed, 6 Oct 2004 17:18:55 +0000 (+0000) Subject: move the log if a new one exists X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=21f6993243a662615e092f7bc9c2b0558bf03cfc;p=deb%2Fhackedgotchi.git move the log if a new one exists git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@8 c2f067bf-98e0-425f-9c98-e76020cfa380 --- diff --git a/cron/30log b/cron/30log index 8a10450..147b5a6 100755 --- a/cron/30log +++ b/cron/30log @@ -2,6 +2,8 @@ cd /org/planet.debian.org/log -rm -f planet.log.0 -mv -f planet.log planet.log.0 -mv new-planet.log planet.log +if [ -f new-planet.log ]; then + rm -f planet.log.0 + [ -f planet.log ] && mv planet.log planet.log.0 + mv new-planet.log planet.log +fi