QmailtoasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy | Latest revision

Qmailmrtg-upgrade-fix.sh script

(Difference between revisions)

 
Line 1: Line 1:
-
\#!/bin/sh
+
#!/bin/sh
TDIR=/usr/share/toaster
TDIR=/usr/share/toaster

Latest revision as of 20:58, 12 June 2006

#!/bin/sh

TDIR=/usr/share/toaster

if [ -f $TDIR/mrtg/bytes-day.png.meta ] ; then

 mv -f $TDIR/mrtg/*.png.meta $TDIR/htdocs/mrtg/;

fi

if [ -f $TDIR/mrtg/bytes-day.png ] ; then

 mv -f $TDIR/mrtg/*.png $TDIR/htdocs/mrtg/;

fi

if [ -f $TDIR/mrtg/bytes.html.meta ] ; then

 mv -f $TDIR/mrtg/*.html.meta $TDIR/htdocs/mrtg/;

fi

if [ -f $TDIR/mrtg/bytes.html ] ; then

 mv -f $TDIR/mrtg/*.html $TDIR/htdocs/mrtg/;

fi

if [ -f $TDIR/mrtg/bytes.log ] ; then

 mv -f $TDIR/mrtg/*.log $TDIR/htdocs/mrtg/;

fi

if [ -f $TDIR/mrtg/bytes.old ] ; then

 mv -f $TDIR/mrtg/*.old $TDIR/htdocs/mrtg/;

fi