[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to use logrotate postrotate *bash* script



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-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] CAOBoUnMn1NiDJ=09z+q26U19OgdiwdNxK3dALWiq-RUeGw2LVg@mail.gmail.com">http://lists.debian.org/[🔎] CAOBoUnMn1NiDJ=09z+q26U19OgdiwdNxK3dALWiq-RUeGw2LVg@mail.gmail.com
> 

Attachment: signature.asc
Description: Digital signature


Reply to: