On Thu, Dec 05, 2013 at 10:31:01AM +0100, Steffen Dettmer wrote: > Hi, > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run logrotate as root who has /bin/bash as login shell, > /bin/sh is used. > > How to make logrotate to use the correct interpreter for "postrotate" scripts?
Just a thought, how about making your postrotate command be "/bin/bash /path/to/myscript.sh"? > > Regards, > Steffen > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: > http://lists.debian.org/CAOBoUnMn1NiDJ=09z+q26u19ogdiwdnxk3dalwiq-ruegw2...@mail.gmail.com >
signature.asc
Description: Digital signature