Skip to content

Commit

Permalink
Merge pull request #354 from kardapoltsev/wip/fix-permissions
Browse files Browse the repository at this point in the history
Permissions for /etc/default/app_name changed to 644
  • Loading branch information
kardapoltsev committed Sep 18, 2014
2 parents f651387 + 94cc080 commit feda420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ object JavaServerAppPackaging {
map makeEtcDefaultScript,
linuxPackageMappings <++= (makeEtcDefault, packageName in Linux) map { (conf, name) =>
conf.map(c => LinuxPackageMapping(Seq(c -> ("/etc/default/" + name)),
LinuxFileMetaData(Users.Root, Users.Root)).withConfig()).toSeq
LinuxFileMetaData(Users.Root, Users.Root, "644")).withConfig()).toSeq
},

// === /var/run/app pid folder ===
Expand Down
2 changes: 1 addition & 1 deletion src/sbt-test/rpm/test-executableScriptName/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TaskKey[Unit]("check-spec-file") <<= (target, streams) map { (target, out) =>
out.log.success(spec)
assert(spec contains "%attr(0644,root,root) /usr/share/rpm-test/lib/rpm-test.rpm-test-0.1.0.jar", "Wrong installation path\n" + spec)
assert(spec contains "%config %attr(0755,root,root) /etc/init.d/rpm-test", "Wrong /etc/init.d/\n" + spec)
assert(spec contains "%config %attr(755,root,root) /etc/default/rpm-test", "Wrong etc default file\n" + spec)
assert(spec contains "%config %attr(644,root,root) /etc/default/rpm-test", "Wrong etc default file\n" + spec)
assert(spec contains "%dir %attr(755,rpm-test,rpm-test) /var/log/rpm-test", "Wrong logging dir path\n" + spec)
assert(spec contains "%dir %attr(755,rpm-test,rpm-test) /var/run/rpm-test", "Wrong /var/run dir path\n" + spec)
out.log.success("Successfully tested rpm-test file")
Expand Down
2 changes: 1 addition & 1 deletion src/sbt-test/rpm/test-packageName/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TaskKey[Unit]("check-spec-file") <<= (target, streams) map { (target, out) =>
out.log.success(spec)
assert(spec contains "%attr(0644,root,root) /usr/share/rpm-package/lib/rpm-test.rpm-test-0.1.0.jar", "Wrong installation path\n" + spec)
assert(spec contains "%config %attr(0755,root,root) /etc/init.d/rpm-package", "Wrong /etc/init.d path\n" + spec)
assert(spec contains "%config %attr(755,root,root) /etc/default/rpm-package", "Wrong /etc default file\n" + spec)
assert(spec contains "%config %attr(644,root,root) /etc/default/rpm-package", "Wrong /etc default file\n" + spec)
assert(spec contains "%dir %attr(755,rpm-package,rpm-package) /var/log/rpm-package", "Wrong logging dir path\n" + spec)
assert(spec contains "%dir %attr(755,rpm-package,rpm-package) /var/run/rpm-package", "Wrong /var/run dir path\n" + spec)
out.log.success("Successfully tested rpm-package file")
Expand Down

0 comments on commit feda420

Please sign in to comment.