Check-in [93b5d66091]
Overview
Comment:Updated to allow in-place signing, rather than atomic-replace
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 93b5d660914c07df5db2f2f1c3db9ecf2aba601d
User & Date: rkeene on 2014-11-17 21:05:10
Other Links: manifest | tags
Context
2014-11-17
21:11
Updated to call appfs-cert to sign the site if it is available check-in: 87b144f5c9 user: rkeene tags: trunk
21:05
Updated to allow in-place signing, rather than atomic-replace check-in: 93b5d66091 user: rkeene tags: trunk
21:03
Updated to only prompt for passwords for encrypted files, and store certificate if a CSR was automatically generated check-in: 111b99f620 user: rkeene tags: trunk
Changes

Modified appfs-cert from [bccff16fa2] to [f7a5474fb2].

275
276
277
278
279
280
281

282
283
284
285
286





287
288
289
290
291
292
293

set data [split $data ","]
lappend data $cert
lappend data $signature

set data [join $data ","]


set fd [open "$::env(SITE_INDEX_FILE).new" "w"]
puts $fd $data
close $fd

file rename -force -- "$::env(SITE_INDEX_FILE).new" $::env(SITE_INDEX_FILE)






_EOF_
)"
}

cmd="$1"
shift







>
|
|
|

|
>
>
>
>
>







275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299

set data [split $data ","]
lappend data $cert
lappend data $signature

set data [join $data ","]

if {![info exists ::env(APPFS_SIGN_IN_PLACE)]} {
	set fd [open "$::env(SITE_INDEX_FILE).new" "w" 0644]
	puts $fd $data
	close $fd

	file rename -force -- "$::env(SITE_INDEX_FILE).new" $::env(SITE_INDEX_FILE)
} else {
	set fd [open "$::env(SITE_INDEX_FILE)" "w" 0644]
	puts $fd $data
	close $fd
}

_EOF_
)"
}

cmd="$1"
shift