scala - Couldn't package a cron job using sbt-native-packager when building a deb bundle -
i trying package cron part of debian package (https://github.com/indykish/megam_akka.git).
the debian package built using sbt-native-packager. placed cron script inside bin directory here https://github.com/indykish/megam_akka/blob/master/bin/megamherk.cron.d
i changed build.sbt pickup megamher.cron.d here https://github.com/indykish/megam_akka/blob/master/build.sbt
i have attached snippet of code here:
linuxpackagemappings in debian <+= (basedirectory) map { bd => (packagemapping((bd / "bin/herk_stash") -> "/usr/share/megamherk/bin/herk_stash") withuser "root" withgroup "root" withperms "0755") } linuxpackagemappings in debian <+= (basedirectory) map { bd => (packagemapping((bd / "bin/megamherk.cron.d") -> "/etc/cron.d/megamherk") withuser "root" withgroup "root" withperms "0755") }
i ran:
sbt clean compile sbt dist:dist sbt debian:packagebin
the generated debian bundle inside target directory doesn't have cron bundled.
i referred debian documentation (http://www.debian.org/doc/manuals/maint-guide/dother.en.html#crond)
am missing here ? how make sbt-native-package pickup cron job ?
the easiest way package simple files use default directory structure.
src/linux/...
in case put file in
src/linux/etc/cron.d/megamherk
you locale settings reapplied. if megamherk executable stay executable.
if doesn't work open ticket small test case.
cheers, muki
Comments
Post a Comment