Permalink
Browse files

.deb sets ownership of files to root.

  • Loading branch information...
1 parent 53a3c04 commit 4ff73e6502cdc37202981afb2c2d32a5c1c084df @aphyr aphyr committed Nov 13, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 tasks/leiningen/fatdeb.clj
@@ -63,6 +63,16 @@
(write (file dir "DEBIAN" "conffiles")
(join "\n" ["/etc/riemann/riemann.config"]))
+ ; Postinst
+ ; Fakeroot plays poorly with lein; have to change permissions after
+ ; the fact. :(
+ (write (file dir "DEBIAN" "postinst")
+ "#!/bin/sh
+ chown -R root:root /usr/lib/riemann
+ chown root:root /usr/bin/riemann
+ chown -R root:root /etc/riemann")
+ (.setExecutable (file dir "DEBIAN" "postinst") true false)
+
; Jar
(.mkdirs (file dir "usr" "lib" "riemann"))
(copy (file (:root project) "target"

0 comments on commit 4ff73e6

Please sign in to comment.