我愿意为一个程序包创建一个cron作业,但是当我在debian/cron.d
其中定义它时,它会安装为/etc/cron.d/package
。我希望能够将cron作业的名称更改为/etc/cron.d/foobar
。
--name=name
Look for files named debian/package.name.cron.* and install them as
etc/cron.*/name, instead of using the usual files and installing
them as the package name.
因此,命名您的debian/package-name.foobar.cron.d
,然后添加到debian/rules
:
override_dh_installcron:
dh_installcron --name=foobar
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句