Diff

Differences From Artifact [bccff16fa2]:

To Artifact [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