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    275   
   276    276   set data [split $data ","]
   277    277   lappend data $cert
   278    278   lappend data $signature
   279    279   
   280    280   set data [join $data ","]
   281    281   
   282         -set fd [open "$::env(SITE_INDEX_FILE).new" "w"]
   283         -puts $fd $data
   284         -close $fd
          282  +if {![info exists ::env(APPFS_SIGN_IN_PLACE)]} {
          283  +	set fd [open "$::env(SITE_INDEX_FILE).new" "w" 0644]
          284  +	puts $fd $data
          285  +	close $fd
   285    286   
   286         -file rename -force -- "$::env(SITE_INDEX_FILE).new" $::env(SITE_INDEX_FILE)
          287  +	file rename -force -- "$::env(SITE_INDEX_FILE).new" $::env(SITE_INDEX_FILE)
          288  +} else {
          289  +	set fd [open "$::env(SITE_INDEX_FILE)" "w" 0644]
          290  +	puts $fd $data
          291  +	close $fd
          292  +}
   287    293   
   288    294   _EOF_
   289    295   )"
   290    296   }
   291    297   
   292    298   cmd="$1"
   293    299   shift