Commit c82729c 1 parent e2abc5a commit c82729c Copy full SHA for c82729c
File tree 4 files changed +9
-9
lines changed
main/scala/com/typesafe/sbt/packager/debian
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ trait DebianPluginLike {
419
419
streams : TaskStreams ): (String , String ) = {
420
420
// how to create the chownCmd. TODO maybe configurable?
421
421
def chownCmd (user : String , group : String )(path : String ): String =
422
- s " chown $user: $group $path"
422
+ s " chown $user: $group ' $path' "
423
423
424
424
val header = " # Chown definitions created by SBT Native Packager\n "
425
425
// Check for non root user/group and create chown commands
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ TaskKey[Unit]("checkControlFiles") := {
24
24
" postinst misses useradd for daemonuser: " + postinst
25
25
)
26
26
assert(
27
- postinst contains " chown daemonuser:daemongroup /var/log/debian-test" ,
28
- " postinst misses chown daemonuser /var/log/debian-test: " + postinst
27
+ postinst contains " chown daemonuser:daemongroup ' /var/log/debian-test' " ,
28
+ " postinst misses chown daemonuser ' /var/log/debian-test' : " + postinst
29
29
)
30
30
assert(! (postinst contains " addgroup --system daemonuser" ), " postinst has addgroup for daemonuser: " + postinst)
31
31
assert(
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ TaskKey[Unit]("checkControlFiles") := {
23
23
" postinst misses useradd for daemonuser: " + postinst
24
24
)
25
25
assert(
26
- postinst contains " chown daemonuser:daemongroup /var/log/debian-test" ,
27
- " postinst misses chown daemonuser /var/log/debian-test: " + postinst
26
+ postinst contains " chown daemonuser:daemongroup ' /var/log/debian-test' " ,
27
+ " postinst misses chown daemonuser ' /var/log/debian-test' : " + postinst
28
28
)
29
29
assert(! (postinst contains " addgroup --system daemonuser" ), " postinst has addgroup for daemonuser: " + postinst)
30
30
assert(
@@ -37,7 +37,7 @@ TaskKey[Unit]("checkControlFiles") := {
37
37
assert(! (postinst contains " chown daemonuser:debian-test" ), " postinst contains wrong group: \n " + postinst)
38
38
assert(! (postinst contains " chown debian-test:debian-test" ), " postinst contains wrong user and group: \n " + postinst)
39
39
assert(
40
- ! (postinst contains " chown daemonuser:daemongroup /usr/share/debian-test" ),
40
+ ! (postinst contains " chown daemonuser:daemongroup ' /usr/share/debian-test' " ),
41
41
" postinst contains chown /usr/share/app_name: \n " + postinst
42
42
)
43
43
streams.value.log.success(" Successfully tested upstart control files" )
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ TaskKey[Unit]("checkControlFiles") := {
24
24
" postinst misses useradd for daemonuser: " + postinst
25
25
)
26
26
assert(
27
- postinst contains " chown daemonuser:daemongroup /var/log/debian-test" ,
28
- " postinst misses chown daemonuser /var/log/debian-test: " + postinst
27
+ postinst contains " chown daemonuser:daemongroup ' /var/log/debian-test' " ,
28
+ " postinst misses chown daemonuser ' /var/log/debian-test' : " + postinst
29
29
)
30
30
assert(! (postinst contains " addgroup --system daemonuser" ), " postinst has addgroup for daemonuser: " + postinst)
31
31
assert(
@@ -38,7 +38,7 @@ TaskKey[Unit]("checkControlFiles") := {
38
38
assert(! (postinst contains " chown daemonuser:debian-test" ), " postinst contains wrong group: \n " + postinst)
39
39
assert(! (postinst contains " chown debian-test:debian-test" ), " postinst contains wrong user and group: \n " + postinst)
40
40
assert(
41
- ! (postinst contains " chown daemonuser:daemongroup /usr/share/debian-test" ),
41
+ ! (postinst contains " chown daemonuser:daemongroup ' /usr/share/debian-test' " ),
42
42
" postinst contains chown /usr/share/app_name: \n " + postinst
43
43
)
44
44
streams.value.log.success(" Successfully tested upstart control files" )
You can’t perform that action at this time.
0 commit comments